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

Function Align

native/thirdpart/flatbuffers/flexbuffers.h:1347–1352  ·  view source on GitHub ↗

Align to prepare for writing a scalar with a certain size.

Source from the content-addressed store, hash-verified

1345
1346 // Align to prepare for writing a scalar with a certain size.
1347 uint8_t Align(BitWidth alignment) {
1348 auto byte_width = 1U << alignment;
1349 buf_.insert(buf_.end(), flatbuffers::PaddingBytes(buf_.size(), byte_width),
1350 0);
1351 return static_cast<uint8_t>(byte_width);
1352 }
1353
1354 void WriteBytes(const void *val, size_t size) {
1355 buf_.insert(buf_.end(), reinterpret_cast<const uint8_t *>(val),

Callers 5

FinishFunction · 0.70
PushIndirectFunction · 0.70
CreateBlobFunction · 0.70
ScalarVectorFunction · 0.70
CreateVectorFunction · 0.70

Calls 3

PaddingBytesFunction · 0.85
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected