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

Function GetAnyFieldI

native/thirdpart/flatbuffers/reflection.h:186–191  ·  view source on GitHub ↗

Get any table field as a 64bit int, regardless of what type it is.

Source from the content-addressed store, hash-verified

184
185// Get any table field as a 64bit int, regardless of what type it is.
186inline int64_t GetAnyFieldI(const Table &table,
187 const reflection::Field &field) {
188 auto field_ptr = table.GetAddressOf(field.offset());
189 return field_ptr ? GetAnyValueI(field.type()->base_type(), field_ptr)
190 : field.default_integer();
191}
192
193// Get any table field as a double, regardless of what type it is.
194inline double GetAnyFieldF(const Table &table, const reflection::Field &field) {

Callers

nothing calls this directly

Calls 2

GetAnyValueIFunction · 0.85
GetAddressOfMethod · 0.80

Tested by

no test coverage detected