MCPcopy Create free account
hub / github.com/Tencent/tgfx / Hexify

Function Hexify

src/pdf/PDFMetadataUtils.cpp:223–231  ·  view source on GitHub ↗

Convert a block of memory to hexadecimal. Input and output pointers will be moved to end of the range.

Source from the content-addressed store, hash-verified

221// Convert a block of memory to hexadecimal. Input and output pointers will be
222// moved to end of the range.
223void 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
233std::string UUIDToString(const UUID& uuid) {
234 // 8-4-4-4-12

Callers 1

UUIDToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected