MCPcopy Create free account
hub / github.com/HumbleNet/HumbleNet / AddStruct

Function AddStruct

3rdparty/flatbuffers/include/flatbuffers/flatbuffers.h:696–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

694 }
695
696 template<typename T> void AddStruct(voffset_t field, const T *structptr) {
697 if (!structptr) return; // Default, don't store.
698 Align(AlignOf<T>());
699 PushBytes(reinterpret_cast<const uint8_t *>(structptr), sizeof(T));
700 TrackField(field, GetSize());
701 }
702
703 void AddStructOffset(voffset_t field, uoffset_t off) {
704 TrackField(field, off);

Callers

nothing calls this directly

Calls 4

AlignFunction · 0.85
PushBytesFunction · 0.85
TrackFieldFunction · 0.85
GetSizeFunction · 0.85

Tested by

no test coverage detected