MCPcopy Create free account
hub / github.com/catboost/catboost / HexEncode

Function HexEncode

util/string/hex.cpp:20–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff");
19
20char* 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
32void* HexDecode(const void* in, size_t len, void* ptr) {
33 const char* b = (const char*)in;

Callers

nothing calls this directly

Calls 2

DigitToCharFunction · 0.85
beginMethod · 0.45

Tested by

no test coverage detected