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

Function EndVector

Libs/flatbuffers/flexbuffers.h:1101–1107  ·  view source on GitHub ↗

TODO(wvo): allow this to specify an aligment greater than the natural alignment.

Source from the content-addressed store, hash-verified

1099 // TODO(wvo): allow this to specify an aligment greater than the natural
1100 // alignment.
1101 size_t EndVector(size_t start, bool typed, bool fixed) {
1102 auto vec = CreateVector(start, stack_.size() - start, 1, typed, fixed);
1103 // Remove temp elements and return vector.
1104 stack_.resize(start);
1105 stack_.push_back(vec);
1106 return static_cast<size_t>(vec.u_);
1107 }
1108
1109 size_t EndMap(size_t start) {
1110 // We should have interleaved keys and values on the stack.

Callers 2

VectorFunction · 0.70
TypedVectorFunction · 0.70

Calls 4

CreateVectorFunction · 0.70
sizeMethod · 0.45
resizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected