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

Function GetAnyVectorElemF

native/thirdpart/flatbuffers/reflection.h:238–241  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

236
237// Get any vector element as a double, regardless of what type it is.
238inline double GetAnyVectorElemF(const VectorOfAny *vec,
239 reflection::BaseType elem_type, size_t i) {
240 return GetAnyValueF(elem_type, vec->Data() + GetTypeSize(elem_type) * i);
241}
242
243// Get any vector element as a string, regardless of what type it is.
244inline std::string GetAnyVectorElemS(const VectorOfAny *vec,

Callers

nothing calls this directly

Calls 3

GetAnyValueFFunction · 0.85
GetTypeSizeFunction · 0.85
DataMethod · 0.45

Tested by

no test coverage detected