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

Function SetAnyFieldS

native/thirdpart/flatbuffers/reflection.h:327–333  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

325
326// Set any table field as a string, regardless of what type it is.
327inline bool SetAnyFieldS(Table *table, const reflection::Field &field,
328 const char *val) {
329 auto field_ptr = table->GetAddressOf(field.offset());
330 if (!field_ptr) return false;
331 SetAnyValueS(field.type()->base_type(), field_ptr, val);
332 return true;
333}
334
335// Set any struct field as a 64bit int, regardless of type what it is.
336inline void SetAnyFieldI(Struct *st, const reflection::Field &field,

Callers

nothing calls this directly

Calls 2

SetAnyValueSFunction · 0.85
GetAddressOfMethod · 0.80

Tested by

no test coverage detected