rt.compiler.util.hash

Undocumented in source.

Members

Functions

rt_hash_block
hash_t rt_hash_block(size_t* bStart, size_t length, hash_t seed)

hashes bStart[0..length] size_t

rt_hash_combine
hash_t rt_hash_combine(hash_t val1, hash_t val2)

combines two hash values

rt_hash_combine32
uint rt_hash_combine32(uint val, uint seed)

combines two hash values (32 bit, architecture neutral)

rt_hash_combine64
ulong rt_hash_combine64(ulong value, ulong level)

combines two hash values (64 bit, architecture neutral)

rt_hash_str
hash_t rt_hash_str(void* bStart, size_t length, hash_t seed)

hashes bStart[0..length] bytes

rt_hash_str_neutral32
uint rt_hash_str_neutral32(void* bStart, uint length, uint seed)

hashes bStart[0..length] in an architecture neutral way

rt_hash_str_neutral64
ulong rt_hash_str_neutral64(void* bStart, ulong length, ulong seed)

hashes bStart[0..length] in an architecture neutral way

rt_hash_utf16
uint rt_hash_utf16(wchar[] str, uint seed)

hashes UTF-16 chars using the UTF codepoints (slower than rt_hash_str that uses the bit representation)

rt_hash_utf32
uint rt_hash_utf32(dchar[] str, uint seed)

hashes UTF-32 chars using the UTF codepoints (should be equivalent to rt_hash_str that uses the bit representation)

rt_hash_utf8
uint rt_hash_utf8(char[] str, uint seed)

hashes UTF-8 chars using the UTF codepoints (slower than rt_hash_str that uses the bit representation)

Meta