Convert a block of memory to hexadecimal. Input and output pointers will be moved to end of the range.
| 221 | // Convert a block of memory to hexadecimal. Input and output pointers will be |
| 222 | // moved to end of the range. |
| 223 | void Hexify(const uint8_t** inputPtr, char** outputPtr, int count) { |
| 224 | DEBUG_ASSERT(inputPtr && *inputPtr); |
| 225 | DEBUG_ASSERT(outputPtr && *outputPtr); |
| 226 | while (count-- > 0) { |
| 227 | uint8_t value = *(*inputPtr)++; |
| 228 | *(*outputPtr)++ = HexadecimalDigits::lower[value >> 4]; |
| 229 | *(*outputPtr)++ = HexadecimalDigits::lower[value & 0xF]; |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | std::string UUIDToString(const UUID& uuid) { |
| 234 | // 8-4-4-4-12 |