MCPcopy Create free account
hub / github.com/comaps/comaps / CalculateForString

Method CalculateForString

libs/coding/sha1.cpp:70–75  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

68
69// static
70SHA1::Hash SHA1::CalculateForString(std::string_view str)
71{
72 boost::uuids::detail::sha1 sha1;
73 sha1.process_bytes(str.data(), str.size());
74 return ExtractHash(sha1);
75}
76} // namespace coding

Callers

nothing calls this directly

Calls 3

ExtractHashFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected