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

Function SetAnyFieldF

native/thirdpart/flatbuffers/reflection.h:318–324  ·  view source on GitHub ↗

Set any table field as a double, regardless of what type it is.

Source from the content-addressed store, hash-verified

316
317// Set any table field as a double, regardless of what type it is.
318inline bool SetAnyFieldF(Table *table, const reflection::Field &field,
319 double val) {
320 auto field_ptr = table->GetAddressOf(field.offset());
321 if (!field_ptr) return val == GetFieldDefaultF<double>(field);
322 SetAnyValueF(field.type()->base_type(), field_ptr, val);
323 return true;
324}
325
326// Set any table field as a string, regardless of what type it is.
327inline bool SetAnyFieldS(Table *table, const reflection::Field &field,

Callers

nothing calls this directly

Calls 2

SetAnyValueFFunction · 0.85
GetAddressOfMethod · 0.80

Tested by

no test coverage detected