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

Function TrackField

native/thirdpart/flatbuffers/flatbuffers.h:1372–1377  ·  view source on GitHub ↗

When writing fields, we track where they are, so we can create correct vtables later.

Source from the content-addressed store, hash-verified

1370 // When writing fields, we track where they are, so we can create correct
1371 // vtables later.
1372 void TrackField(voffset_t field, uoffset_t off) {
1373 FieldLoc fl = { off, field };
1374 buf_.scratch_push_small(fl);
1375 num_field_loc++;
1376 max_voffset_ = (std::max)(max_voffset_, field);
1377 }
1378
1379 // Like PushElement, but additionally tracks the field this represents.
1380 template<typename T> void AddElement(voffset_t field, T e, T def) {

Callers 3

AddElementFunction · 0.85
AddStructFunction · 0.85
AddStructOffsetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected