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

Function SetAnyFieldI

native/thirdpart/flatbuffers/reflection.h:309–315  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

307
308// Set any table field as a 64bit int, regardless of type what it is.
309inline bool SetAnyFieldI(Table *table, const reflection::Field &field,
310 int64_t val) {
311 auto field_ptr = table->GetAddressOf(field.offset());
312 if (!field_ptr) return val == GetFieldDefaultI<int64_t>(field);
313 SetAnyValueI(field.type()->base_type(), field_ptr, val);
314 return true;
315}
316
317// Set any table field as a double, regardless of what type it is.
318inline bool SetAnyFieldF(Table *table, const reflection::Field &field,

Callers

nothing calls this directly

Calls 2

SetAnyValueIFunction · 0.85
GetAddressOfMethod · 0.80

Tested by

no test coverage detected