MCPcopy Create free account
hub / github.com/couchbase/fleece / hexString

Method hexString

API/fleece/slice.hh:600–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598
599
600 inline std::string pure_slice::hexString() const {
601 static const char kDigits[17] = "0123456789abcdef";
602 std::string result;
603 result.reserve(2 * size);
604 for (size_t i = 0; i < size; i++) {
605 uint8_t byte = (*this)[(unsigned)i];
606 result += kDigits[byte >> 4];
607 result += kDigits[byte & 0xF];
608 }
609 return result;
610 }
611
612
613#pragma mark COMPARISON & FIND:

Callers 4

HashTreeTests.ccFile · 0.80
SharedKeysTests.ccFile · 0.80
writeDumpBriefMethod · 0.80
writeOutputFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected