MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / hashes_fingerprint

Function hashes_fingerprint

include/stringzilla/stringzilla.hpp:4743–4748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4741 */
4742template <std::size_t bitset_bits_, typename char_type_>
4743void hashes_fingerprint( //
4744 basic_string_slice<char_type_> const &str, std::size_t window_length,
4745 std::bitset<bitset_bits_> &fingerprint) noexcept {
4746 constexpr std::size_t fingerprint_bytes = sizeof(std::bitset<bitset_bits_>);
4747 return sz_hashes_fingerprint(str.data(), str.size(), window_length, (sz_ptr_t)&fingerprint, fingerprint_bytes);
4748}
4749
4750/**
4751 * @brief Computes the Rabin-Karp-like rolling binary fingerprint of a string.

Callers

nothing calls this directly

Calls 3

dataMethod · 0.45
sizeMethod · 0.45
viewMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…