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

Function AddStruct

native/thirdpart/flatbuffers/flatbuffers.h:1397–1402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1395 }
1396
1397 template<typename T> void AddStruct(voffset_t field, const T *structptr) {
1398 if (!structptr) return; // Default, don't store.
1399 Align(AlignOf<T>());
1400 buf_.push_small(*structptr);
1401 TrackField(field, GetSize());
1402 }
1403
1404 void AddStructOffset(voffset_t field, uoffset_t off) {
1405 TrackField(field, off);

Callers

nothing calls this directly

Calls 3

TrackFieldFunction · 0.85
AlignFunction · 0.70
GetSizeFunction · 0.70

Tested by

no test coverage detected