114 uint32_t
GetHash32 (
const char * buffer,
const size_t size);
129 uint64_t
GetHash64 (
const char * buffer,
const size_t size);
144 uint32_t
GetHash32 (
const std::string s);
158 uint64_t
GetHash64 (
const std::string s);
193 uint32_t
Hash32 (
const char * buffer,
const size_t size);
203 uint64_t
Hash64 (
const char * buffer,
const size_t size);
213 uint32_t
Hash32 (
const std::string s);
222 uint64_t
Hash64 (
const std::string s);
276 Hash32 (
const char * buffer,
const size_t size)
283 Hash64 (
const char * buffer,
const size_t size)
ns3::Hash::Implementation, ns3::Hash::Function::Hash32 and ns3::Hash::Function::Hash64 declarations...
Smart pointer implementation.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
ns3::Hash::Function::Fnv1a declaration.
virtual uint64_t GetHash64(const char *buffer, const size_t size)
Compute 64-bit hash of a byte buffer.
Definition of assertion macros NS_ASSERT() and NS_ASSERT_MSG().
Hasher()
Constructor using the default implementation.
uint32_t GetHash32(const char *buffer, const size_t size)
Compute 32-bit hash of a byte buffer.
uint32_t Hash32(const char *buffer, const size_t size)
Compute 32-bit hash of a byte buffer, using the default hash function.
Hasher & clear(void)
Restore initial state.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual uint32_t GetHash32(const char *buffer, const size_t size)=0
Compute 32-bit hash of a byte buffer.
uint64_t Hash64(const char *buffer, const size_t size)
Compute 64-bit hash of a byte buffer, using the default hash function.
Ptr< Hash::Implementation > m_impl
Hash implementation.
uint64_t GetHash64(const char *buffer, const size_t size)
Compute 64-bit hash of a byte buffer.
ns3::Hash::Function::Murmur3 declaration.
Generic Hash function interface.