| 199 | } |
| 200 | |
| 201 | std::uint32_t readU32(const char*& ptr, const char* end) |
| 202 | { |
| 203 | std::uint32_t x{}; |
| 204 | if (ptr + 4 <= end) |
| 205 | { |
| 206 | std::memcpy(&x, ptr, 4); |
| 207 | ptr += 4; |
| 208 | } |
| 209 | return ntohl(x); |
| 210 | } |
| 211 | |
| 212 | std::string readName(const char*& ptr, const char* end, const char* begin) |
| 213 | { |
no outgoing calls
no test coverage detected