| 1395 | } |
| 1396 | |
| 1397 | template<typename T> void AddStruct(voffset_t field, const T *structptr) { |
| 1398 | if (!structptr) return; // Default, don't store. |
| 1399 | Align(AlignOf<T>()); |
| 1400 | buf_.push_small(*structptr); |
| 1401 | TrackField(field, GetSize()); |
| 1402 | } |
| 1403 | |
| 1404 | void AddStructOffset(voffset_t field, uoffset_t off) { |
| 1405 | TrackField(field, off); |
nothing calls this directly
no test coverage detected