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

Function ToHex

library/cpp/http/io/chunk.cpp:40–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40static inline char* ToHex(size_t len, char* buf) {
41 do {
42 const size_t val = len % 16;
43
44 *--buf = (val < 10) ? (val + '0') : (val - 10 + 'a');
45 len /= 16;
46 } while (len);
47
48 return buf;
49}
50
51class TChunkedInput::TImpl {
52public:

Callers 1

WriteImplMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected