MFEM v4.10.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::Hasher Struct Reference

Streaming implementation of MurmurHash3 128 (x64). More...

#include <hash_util.hpp>

Public Member Functions

void init (uint64_t seed=0)
 Resets the Hasher back to an initial seed.
 
void append (const std::byte *vs, uint64_t bytes)
 Append data vs of size bytes.
 
void finalize ()
 

Public Attributes

uint64_t data [2] = {0, 0}
 Storage for the final hash result after finalize() is called.
 

Detailed Description

Streaming implementation of MurmurHash3 128 (x64).

Constructs the hash in 3 stages: init, append, finalize.

Definition at line 29 of file hash_util.hpp.

Member Function Documentation

◆ append()

void mfem::Hasher::append ( const std::byte * vs,
uint64_t bytes )

Append data vs of size bytes.

Definition at line 65 of file hash_util.cpp.

◆ finalize()

void mfem::Hasher::finalize ( )

Definition at line 92 of file hash_util.cpp.

◆ init()

void mfem::Hasher::init ( uint64_t seed = 0)

Resets the Hasher back to an initial seed.

Definition at line 22 of file hash_util.cpp.

Member Data Documentation

◆ data

uint64_t mfem::Hasher::data[2] = {0, 0}

Storage for the final hash result after finalize() is called.

Use data[1] when only 64 bits are required.

Definition at line 34 of file hash_util.hpp.


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