EpcTools
An event based multi-threaded C++ development framework.
Static Public Member Functions | List of all members
EHash Class Reference

Calcuates a 32-bit hash value for the specified string or array of characters. More...

#include <ehash.h>

Static Public Member Functions

static ULong getHash (EString &str)
 Returns the 32-bit hash value for the specified string. More...
 
static ULong getHash (cpChar val, ULong len)
 Returns the 32-bit has value for the array of characters. More...
 
static ULong getHash (cpUChar val, ULong len)
 Returns the 32-bit has value for the array of unsigned characters. More...
 

Detailed Description

Calcuates a 32-bit hash value for the specified string or array of characters.

Member Function Documentation

◆ getHash() [1/3]

ULong EHash::getHash ( cpChar  val,
ULong  len 
)
static

Returns the 32-bit has value for the array of characters.

Parameters
valThe array of characters to calculate the hash for.
lenThe length of the array of characters.
Returns
32-bit hash value

◆ getHash() [2/3]

ULong EHash::getHash ( cpUChar  val,
ULong  len 
)
static

Returns the 32-bit has value for the array of unsigned characters.

Parameters
valThe array of unsigned characters to calculate the hash for.
lenThe length of the array of unsigned characters.
Returns
32-bit hash value

◆ getHash() [3/3]

ULong EHash::getHash ( EString str)
static

Returns the 32-bit hash value for the specified string.

Parameters
strThe string to calculate the hash for.
Returns
32-bit hash value

The documentation for this class was generated from the following files: