| 177 | #endif |
| 178 | |
| 179 | std::uint8_t readU8(const char*& ptr, const char* end) |
| 180 | { |
| 181 | std::uint8_t x{}; |
| 182 | if (ptr + 1 <= end) |
| 183 | { |
| 184 | std::memcpy(&x, ptr, 1); |
| 185 | ptr += 1; |
| 186 | } |
| 187 | return x; |
| 188 | } |
| 189 | |
| 190 | std::uint16_t readU16(const char*& ptr, const char* end) |
| 191 | { |
no outgoing calls
no test coverage detected