|
libassetmap
1.0.0
Hash-table based archive format containing compressed data
|
1 #ifndef LIBASSETMAP_HASHERS_H
2 #define LIBASSETMAP_HASHERS_H
21 [[nodiscard]] uint64_t
Hash(std::string_view data)
const noexcept
override;
32 size_t bucketCount)
const noexcept
override;
46 #endif // LIBASSETMAP_HASHERS_H
uint64_t Hash(std::string_view data) const noexcept override
Compute the hash of a given string of bytes.
size_t CalcBucketsForItemCount(size_t count) const noexcept override
Calculates the total number of buckets that should be created for total file count.
Definition: DirectoryMetadata.h:65
size_t CalcBucket(uint64_t hash, size_t bucketCount) const noexcept override
Calculates the bucket to index given a hash and total bucket size.
CityHash(float bucketRatio=0.75f)
Constructs an instance of the CityHash class.