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

Function CreateStruct

Libs/flatbuffers/flatbuffers.h:2213–2218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2211
2212 /// @brief Write a struct by itself, typically to be part of a union.
2213 template<typename T> Offset<const T *> CreateStruct(const T &structobj) {
2214 NotNested();
2215 Align(AlignOf<T>());
2216 buf_.push_small(structobj);
2217 return Offset<const T *>(GetSize());
2218 }
2219
2220 /// @brief The length of a FlatBuffer file header.
2221 static const size_t kFileIdentifierLength = 4;

Callers

nothing calls this directly

Calls 3

NotNestedFunction · 0.85
AlignFunction · 0.70
GetSizeFunction · 0.70

Tested by

no test coverage detected