MCPcopy Create free account
hub / github.com/colmap/colmap / SHA256DigestToHex

Function SHA256DigestToHex

src/colmap/util/file.cc:431–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429namespace {
430
431std::string SHA256DigestToHex(span<unsigned char> digest) {
432 std::ostringstream hex;
433 for (const auto c : digest) {
434 hex << std::hex << std::setw(2) << std::setfill('0')
435 << static_cast<unsigned int>(c);
436 }
437 return hex.str();
438}
439
440} // namespace
441

Callers 1

ComputeSHA256Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected