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

Function EndVector

native/thirdpart/flatbuffers/flexbuffers.h:1091–1097  ·  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

1089 // TODO(wvo): allow this to specify an aligment greater than the natural
1090 // alignment.
1091 size_t EndVector(size_t start, bool typed, bool fixed) {
1092 auto vec = CreateVector(start, stack_.size() - start, 1, typed, fixed);
1093 // Remove temp elements and return vector.
1094 stack_.resize(start);
1095 stack_.push_back(vec);
1096 return static_cast<size_t>(vec.u_);
1097 }
1098
1099 size_t EndMap(size_t start) {
1100 // We should have interleaved keys and values on the stack.

Callers 2

VectorFunction · 0.70
TypedVectorFunction · 0.70

Calls 3

push_backMethod · 0.80
CreateVectorFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected