| 18 | "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"); |
| 19 | |
| 20 | char* HexEncode(const void* in, size_t len, char* out) { |
| 21 | const unsigned char* b = (const unsigned char*)in; |
| 22 | const unsigned char* e = b + len; |
| 23 | |
| 24 | while (b != e) { |
| 25 | *out++ = DigitToChar(*b / 16); |
| 26 | *out++ = DigitToChar(*b++ % 16); |
| 27 | } |
| 28 | |
| 29 | return out; |
| 30 | } |
| 31 | |
| 32 | void* HexDecode(const void* in, size_t len, void* ptr) { |
| 33 | const char* b = (const char*)in; |
nothing calls this directly
no test coverage detected