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

Function GetAnyVectorElemI

native/thirdpart/flatbuffers/reflection.h:232–235  ·  view source on GitHub ↗

Get any vector element as a 64bit int, regardless of what type it is.

Source from the content-addressed store, hash-verified

230
231// Get any vector element as a 64bit int, regardless of what type it is.
232inline int64_t GetAnyVectorElemI(const VectorOfAny *vec,
233 reflection::BaseType elem_type, size_t i) {
234 return GetAnyValueI(elem_type, vec->Data() + GetTypeSize(elem_type) * i);
235}
236
237// Get any vector element as a double, regardless of what type it is.
238inline double GetAnyVectorElemF(const VectorOfAny *vec,

Callers

nothing calls this directly

Calls 3

GetAnyValueIFunction · 0.85
GetTypeSizeFunction · 0.85
DataMethod · 0.45

Tested by

no test coverage detected