| 1522 | uoffset_t EndStruct() { return GetSize(); } |
| 1523 | |
| 1524 | void ClearOffsets() { |
| 1525 | buf_.scratch_pop(num_field_loc * sizeof(FieldLoc)); |
| 1526 | num_field_loc = 0; |
| 1527 | max_voffset_ = 0; |
| 1528 | } |
| 1529 | |
| 1530 | // Aligns such that when "len" bytes are written, an object can be written |
| 1531 | // after it with "alignment" without padding. |