Tkrzw
tkrzw_hash_util.h File Reference

Hash utilities. More...

#include <map>
#include <string>
#include <vector>
#include <cinttypes>
#include "tkrzw_lib_common.h"

Namespaces

namespace  tkrzw
 Common namespace of Tkrzw.
 

Functions

uint64_t tkrzw::HashMurmur (const void *buf, size_t size, uint64_t seed)
 Gets the hash value by Murmur hashing.
 
uint64_t tkrzw::HashMurmur (std::string_view str, uint64_t seed)
 Gets the hash value by Murmur hashing.
 
uint64_t tkrzw::HashFNV (const void *buf, size_t size)
 Gets the hash value by FNV hashing.
 
uint64_t tkrzw::HashFNV (std::string_view str)
 Gets the hash value by FNV hashing.
 
uint32_t tkrzw::HashChecksum6Continuous (const void *buf, size_t size, bool finish, uint32_t seed=0)
 Gets the hash value by Checksum-6, in a continuous way.
 
uint32_t tkrzw::HashChecksum6 (const void *buf, size_t size)
 Gets the hash value by Checksum-6.
 
uint32_t tkrzw::HashChecksum6 (std::string_view str)
 Gets the hash value by Checksum-6.
 
uint32_t tkrzw::HashChecksum6Pair (const void *first_buf, size_t first_size, const void *second_buf, size_t second_size, uint32_t seed=0)
 Gets the hash value by Checksum-6.
 
uint32_t tkrzw::HashChecksum8Continuous (const void *buf, size_t size, bool finish, uint32_t seed=0)
 Gets the hash value by checksum-8, in a continuous way.
 
uint32_t tkrzw::HashChecksum8 (const void *buf, size_t size)
 Gets the hash value by checksum-8.
 
uint32_t tkrzw::HashChecksum8 (std::string_view str)
 Gets the hash value by checksum-8.
 
uint32_t tkrzw::HashChecksum8Pair (const void *first_buf, size_t first_size, const void *second_buf, size_t second_size, uint32_t seed=0)
 Gets the hash value by Checksum-8.
 
uint32_t tkrzw::HashAdler6Continuous (const void *buf, size_t size, bool finish, uint32_t seed=1)
 Gets the hash value by Adler-6, in a continuous way.
 
uint32_t tkrzw::HashAdler6 (const void *buf, size_t size)
 Gets the hash value by Adler-6.
 
uint32_t tkrzw::HashAdler6 (std::string_view str)
 Gets the hash value by Adler-6.
 
uint32_t tkrzw::HashAdler8Continuous (const void *buf, size_t size, bool finish, uint32_t seed=1)
 Gets the hash value by adler-8, in a continuous way.
 
uint32_t tkrzw::HashAdler8 (const void *buf, size_t size)
 Gets the hash value by adler-8.
 
uint32_t tkrzw::HashAdler8 (std::string_view str)
 Gets the hash value by adler-8.
 
uint32_t tkrzw::HashAdler16Continuous (const void *buf, size_t size, bool finish, uint32_t seed=1)
 Gets the hash value by Adler-16, in a continuous way.
 
uint32_t tkrzw::HashAdler16 (const void *buf, size_t size)
 Gets the hash value by Adler-16.
 
uint32_t tkrzw::HashAdler16 (std::string_view str)
 Gets the hash value by Adler-16.
 
uint32_t tkrzw::HashAdler32Continuous (const void *buf, size_t size, bool finish, uint32_t seed=1)
 Gets the hash value by Adler-32, in a continuous way.
 
uint32_t tkrzw::HashAdler32 (const void *buf, size_t size)
 Gets the hash value by Adler-32.
 
uint32_t tkrzw::HashAdler32 (std::string_view str)
 Gets the hash value by Adler-32.
 
uint32_t tkrzw::HashCRC4Continuous (const void *buf, size_t size, bool finish, uint32_t seed=0)
 Gets the hash value by CRC-4, in a continuous way.
 
uint32_t tkrzw::HashCRC4 (const void *buf, size_t size)
 Gets the hash value by CRC-4.
 
uint32_t tkrzw::HashCRC4 (std::string_view str)
 Gets the hash value by CRC-4.
 
uint32_t tkrzw::HashCRC8Continuous (const void *buf, size_t size, bool finish, uint32_t seed=0)
 Gets the hash value by CRC-8, in a continuous way.
 
uint32_t tkrzw::HashCRC8 (const void *buf, size_t size)
 Gets the hash value by CRC-8.
 
uint32_t tkrzw::HashCRC8 (std::string_view str)
 Gets the hash value by CRC-8.
 
uint32_t tkrzw::HashCRC16Continuous (const void *buf, size_t size, bool finish, uint32_t seed=0)
 Gets the hash value by CRC-16, in a continuous way.
 
uint32_t tkrzw::HashCRC16 (const void *buf, size_t size)
 Gets the hash value by CRC-16.
 
uint32_t tkrzw::HashCRC16 (std::string_view str)
 Gets the hash value by CRC-16.
 
uint32_t tkrzw::HashCRC32Continuous (const void *buf, size_t size, bool finish, uint32_t seed=0xFFFFFFFF)
 Gets the hash value by CRC-32, in a continuous way.
 
uint32_t tkrzw::HashCRC32 (const void *buf, size_t size)
 Gets the hash value by CRC-32.
 
uint32_t tkrzw::HashCRC32 (std::string_view str)
 Gets the hash value by CRC-32.
 

Detailed Description

Hash utilities.