MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / fill

Function fill

native/thirdpart/flatbuffers/flatbuffers.h:1048–1051  ·  view source on GitHub ↗

fill() is most frequently called with small byte counts (<= 4), which is why we're using loops rather than calling memset.

Source from the content-addressed store, hash-verified

1046 // fill() is most frequently called with small byte counts (<= 4),
1047 // which is why we're using loops rather than calling memset.
1048 void fill(size_t zero_pad_bytes) {
1049 make_space(zero_pad_bytes);
1050 for (size_t i = 0; i < zero_pad_bytes; i++) cur_[i] = 0;
1051 }
1052
1053 // Version for when we know the size is larger.
1054 // Precondition: zero_pad_bytes > 0

Callers 1

dump_floatMethod · 0.85

Calls 1

make_spaceFunction · 0.85

Tested by

no test coverage detected