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

Function AddOffset

native/thirdpart/flatbuffers/flatbuffers.h:1392–1395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1390 }
1391
1392 template<typename T> void AddOffset(voffset_t field, Offset<T> off) {
1393 if (off.IsNull()) return; // Don't store.
1394 AddElement(field, ReferTo(off.o), static_cast<uoffset_t>(0));
1395 }
1396
1397 template<typename T> void AddStruct(voffset_t field, const T *structptr) {
1398 if (!structptr) return; // Default, don't store.

Callers

nothing calls this directly

Calls 3

AddElementFunction · 0.85
ReferToFunction · 0.85
IsNullMethod · 0.45

Tested by

no test coverage detected