When writing fields, we track where they are, so we can create correct vtables later.
| 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) { |
no outgoing calls
no test coverage detected