| 1430 | |
| 1431 | // Write a single aligned scalar to the buffer |
| 1432 | template<typename T> uoffset_t PushElement(T element) { |
| 1433 | AssertScalarT<T>(); |
| 1434 | Align(sizeof(T)); |
| 1435 | buf_.push_small(EndianScalar(element)); |
| 1436 | return GetSize(); |
| 1437 | } |
| 1438 | |
| 1439 | template<typename T> uoffset_t PushElement(Offset<T> off) { |
| 1440 | // Special case for offsets: see ReferTo below. |
no test coverage detected