| 1355 | |
| 1356 | // Write a single aligned scalar to the buffer |
| 1357 | template<typename T> uoffset_t PushElement(T element) { |
| 1358 | AssertScalarT<T>(); |
| 1359 | T litle_endian_element = EndianScalar(element); |
| 1360 | Align(sizeof(T)); |
| 1361 | buf_.push_small(litle_endian_element); |
| 1362 | return GetSize(); |
| 1363 | } |
| 1364 | |
| 1365 | template<typename T> uoffset_t PushElement(Offset<T> off) { |
| 1366 | // Special case for offsets: see ReferTo below. |
no test coverage detected