Huffman Zipper
v-1.0
Data Compression and Decompression using Greedy Huffman Algorithm
HashCode.h
Go to the documentation of this file.
1
7
#pragma once
8
#include <string>
9
#include <cstddef>
10
#include <cstdint>
11
#include <cstring>
12
13
static
const
int
HASH_SEED = 5381;
14
static
const
int
HASH_MULTIPLIER = 33;
15
static
const
int
HASH_MASK = unsigned(-1) >> 1;
24
int
hashCode
(
int
key);
25
int
hashCode
(
bool
key);
26
int
hashCode
(
char
key);
27
int
hashCode
(
unsigned
int
key);
28
int
hashCode
(
long
key);
29
int
hashCode
(
unsigned
long
key);
30
int
hashCode
(
short
key);
31
int
hashCode
(
unsigned
short
key);
32
33
#ifdef _WIN64
34
int
hashCode
(uintptr_t key);
35
#endif
// _WIN64
36
37
int
hashCode
(
void
* key);
38
int
hashCode
(
const
char
* base,
size_t
numBytes);
39
int
hashCode
(
const
char
* str);
40
int
hashCode
(
const
std::string& str);
41
int
hashCode
(
double
key);
42
int
hashCode
(
float
key);
43
int
hashCode
(
long
double
key);
hashCode
int hashCode(int key)
Returns a hash code for the specified key, which is always a nonnegative integer.
Definition:
HashCode.cpp:9
huffman-zipper
src
HashCode.h
Generated by
1.9.1