MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / Bytes2HexStr

Function Bytes2HexStr

rEFIt_UEFI/Platform/Utils.cpp:97–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97XString8 Bytes2HexStr(UINT8 *data, UINTN len)
98{
99 UINTN i, j, b = 0;
100 XString8 result;
101
102 result.dataSized(len*2+1);
103 for (i = j = 0; i < len; i++) {
104 b = data[i] >> 4;
105 result += (CHAR8) (87 + b + (((b - 10) >> 31) & -39));
106 b = data[i] & 0xf;
107 result += (CHAR8) (87 + b + (((b - 10) >> 31) & -39));
108 }
109 return result;
110}

Callers 1

CreateMenuPropsFunction · 0.85

Calls 1

dataSizedMethod · 0.45

Tested by

no test coverage detected