MCPcopy Create free account
hub / github.com/Niko1221/Strata / hex_bytes

Function hex_bytes

engine/tests/quant/quant_parity.cpp:157–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157std::string hex_bytes(const void* p, size_t n) {
158 static const char* d = "0123456789abcdef";
159 std::string s;
160 const unsigned char* b = (const unsigned char*) p;
161 for (size_t i = 0; i < n; ++i) {
162 s += d[b[i] >> 4];
163 s += d[b[i] & 15];
164 }
165 return s;
166}
167
168std::string hex64(uint64_t v) {
169 char b[20];

Callers 1

dump_rowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected