| 1596 | uoffset_t EndStruct() { return GetSize(); } |
| 1597 | |
| 1598 | void ClearOffsets() { |
| 1599 | buf_.scratch_pop(num_field_loc * sizeof(FieldLoc)); |
| 1600 | num_field_loc = 0; |
| 1601 | max_voffset_ = 0; |
| 1602 | } |
| 1603 | |
| 1604 | // Aligns such that when "len" bytes are written, an object can be written |
| 1605 | // after it with "alignment" without padding. |