TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
HashTrait< std::string > Struct Template Reference

#include <HashTrait.h>

Static Public Member Functions

static size_t hashCode (const std::string &k)
 

Member Function Documentation

static size_t HashTrait< std::string >::hashCode ( const std::string &  k)
inlinestatic
155  {
156  return G3D::superFastHash(k.c_str(), k.size());
157  //return static_cast<size_t>(G3D::Crypto::crc32(k.c_str(), k.size()));
158  }
uint32_t superFastHash(const void *_data, size_t numBytes)
A hash function that is faster than CRC32 for arbitrary long strings http://www.azillionmonkeys.com/qed/hash.html by Paul Hsieh.
Definition: HashTrait.h:35

+ Here is the call graph for this function:


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