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

Function hash_text

engine/src/core/expert_source.cpp:6175–6177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6173}
6174
6175void hash_text(uint64_t& h, const std::string& s) {
6176 h = fnv1a64((const uint8_t*) s.data(), (uint64_t) s.size(), h);
6177}
6178
6179bool hash_small_file(const std::filesystem::path& path, uint64_t& h, std::string& err) {
6180 hash_text(h, path.filename().string());

Callers 3

hash_small_fileFunction · 0.70
hash_sampled_fileFunction · 0.70
shared_arena_pack_hashFunction · 0.70

Calls 3

fnv1a64Function · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected