| 67 | |
| 68 | BinaryReader(std::string_view buf) : p_(buf.data()) {} |
| 69 | template <typename T> T get() { |
| 70 | T ret; |
| 71 | memcpy(&ret, p_, sizeof(T)); |
| 72 | p_ += sizeof(T); |
| 73 | return ret; |
| 74 | } |
| 75 | uint64_t varUInt() { |
| 76 | auto x = *reinterpret_cast<const uint8_t *>(p_++); |
| 77 | if (x < 253) |
nothing calls this directly
no outgoing calls
no test coverage detected