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

Function WriteOffset

native/thirdpart/flatbuffers/flexbuffers.h:1375–1379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1373 }
1374
1375 void WriteOffset(uint64_t o, uint8_t byte_width) {
1376 auto reloff = buf_.size() - o;
1377 FLATBUFFERS_ASSERT(byte_width == 8 || reloff < 1ULL << (byte_width * 8));
1378 Write(reloff, byte_width);
1379 }
1380
1381 template<typename T> void PushIndirect(T val, Type type, BitWidth bit_width) {
1382 auto byte_width = Align(bit_width);

Callers 2

flexbuffers.hFile · 0.85
CreateVectorFunction · 0.85

Calls 2

WriteFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected