MCPcopy Create free account
hub / github.com/Kitware/CMake / ComputeSuffixHash

Method ComputeSuffixHash

Source/cmFileAPI.cxx:285–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285std::string cmFileAPI::ComputeSuffixHash(std::string const& file)
286{
287 cmCryptoHash hasher(cmCryptoHash::AlgoSHA3_256);
288 std::string hash = hasher.HashFile(file);
289 hash.resize(20, '0');
290 return hash;
291}
292
293std::string cmFileAPI::ComputeSuffixTime(std::string const&)
294{

Callers

nothing calls this directly

Calls 2

HashFileMethod · 0.80
resizeMethod · 0.45

Tested by

no test coverage detected