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

Function PushElement

Libs/flatbuffers/flatbuffers.h:1432–1437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1430
1431 // Write a single aligned scalar to the buffer
1432 template<typename T> uoffset_t PushElement(T element) {
1433 AssertScalarT<T>();
1434 Align(sizeof(T));
1435 buf_.push_small(EndianScalar(element));
1436 return GetSize();
1437 }
1438
1439 template<typename T> uoffset_t PushElement(Offset<T> off) {
1440 // Special case for offsets: see ReferTo below.

Callers 7

AddElementFunction · 0.85
CreateStringFunction · 0.85
EndVectorFunction · 0.85
CreateVectorFunction · 0.85
CreateVectorOfStringsFunction · 0.85
CreateVectorScalarCastFunction · 0.85
FinishFunction · 0.85

Calls 4

EndianScalarFunction · 0.85
ReferToFunction · 0.85
AlignFunction · 0.70
GetSizeFunction · 0.70

Tested by

no test coverage detected