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

Function PushElement

native/thirdpart/flatbuffers/flatbuffers.h:1357–1363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1355
1356 // Write a single aligned scalar to the buffer
1357 template<typename T> uoffset_t PushElement(T element) {
1358 AssertScalarT<T>();
1359 T litle_endian_element = EndianScalar(element);
1360 Align(sizeof(T));
1361 buf_.push_small(litle_endian_element);
1362 return GetSize();
1363 }
1364
1365 template<typename T> uoffset_t PushElement(Offset<T> off) {
1366 // Special case for offsets: see ReferTo below.

Callers 6

AddElementFunction · 0.85
CreateStringFunction · 0.85
EndVectorFunction · 0.85
CreateVectorFunction · 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