| 1028 | uint8_t *data_at(size_t offset) const { return buf_ + reserved_ - offset; } |
| 1029 | |
| 1030 | void push(const uint8_t *bytes, size_t num) { |
| 1031 | if (num > 0) { memcpy(make_space(num), bytes, num); } |
| 1032 | } |
| 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) { |
nothing calls this directly
no test coverage detected