MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / AddOffset

Function AddOffset

Libs/flatbuffers/flatbuffers.h:1466–1469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1464 }
1465
1466 template<typename T> void AddOffset(voffset_t field, Offset<T> off) {
1467 if (off.IsNull()) return; // Don't store.
1468 AddElement(field, ReferTo(off.o), static_cast<uoffset_t>(0));
1469 }
1470
1471 template<typename T> void AddStruct(voffset_t field, const T *structptr) {
1472 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