ezEngine  Milestone 7
ez::Foundation::Algorithm::Hashing::ezHashing Class Reference

This class provides implementations of different hashing algorithms. More...

Classes

struct  StringWrapper
 helper struct to wrap a string pointer
 

Public Member Functions

 extern (C++) static ezUInt32 CRC32Hash(const (void)*pKey
 Calculates the CRC32 checksum of the given key.
 
 extern (C++) static ezUInt32 MurmurHash(const (void)*pKey
 Calculates the 32bit murmur hash of the given key.
 
 extern (C++) static ezUInt64 MurmurHash64(const (void)*pKey
 Calculates the 64bit murmur hash of the given key.
 
 extern (C++) static ezUInt32 MurmurHash(StringWrapper str
 Calculates the 32bit murmur hash of a string pointer during runtime. Encoding does not matter here. More...
 

Public Attributes

size_t uiSizeInBytes
 
size_t uiSizeInByte
 
size_t ezUInt32 uiSeed = 0)
 
size_t ezUInt64 uiSeed = 0)
 
ezUInt32 uiSeed = 0)
 

Detailed Description

This class provides implementations of different hashing algorithms.

Member Function Documentation

ez::Foundation::Algorithm::Hashing::ezHashing::extern ( C++  )

Calculates the 32bit murmur hash of a string pointer during runtime. Encoding does not matter here.

We cannot pass a string pointer directly since a string constant would be treated as pointer as well.


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