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

Function GetAnyVectorElemS

native/thirdpart/flatbuffers/reflection.h:244–248  ·  view source on GitHub ↗

Get any vector element as a string, regardless of what type it is.

Source from the content-addressed store, hash-verified

242
243// Get any vector element as a string, regardless of what type it is.
244inline std::string GetAnyVectorElemS(const VectorOfAny *vec,
245 reflection::BaseType elem_type, size_t i) {
246 return GetAnyValueS(elem_type, vec->Data() + GetTypeSize(elem_type) * i,
247 nullptr, -1);
248}
249
250// Get a vector element that's a table/string/vector from a generic vector.
251// Pass Table/String/VectorOfAny as template parameter.

Callers

nothing calls this directly

Calls 3

GetAnyValueSFunction · 0.85
GetTypeSizeFunction · 0.85
DataMethod · 0.45

Tested by

no test coverage detected