| 1033 | |
| 1034 | // Specialized version of push() that avoids memcpy call for small data. |
| 1035 | template<typename T> void push_small(const T &little_endian_t) { |
| 1036 | make_space(sizeof(T)); |
| 1037 | *reinterpret_cast<T *>(cur_) = little_endian_t; |
| 1038 | } |
| 1039 | |
| 1040 | template<typename T> void scratch_push_small(const T &t) { |
| 1041 | ensure_space(sizeof(T)); |
nothing calls this directly
no test coverage detected