MFEM v4.8.0
Finite element discretization library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
mfem::Hasher Struct Reference

streaming implementation for murmurhash3 128 (x64). Constructs the hash in 3 stages: init, append, finalize. More...

#include <hash.hpp>

Public Member Functions

void init (uint64_t seed=0)
 resets this hasher back to an initial seed
 
void append (const uint8_t *vs, uint64_t bytes)
 
void finalize ()
 

Public Attributes

uint64_t data [2] = {0, 0}
 

Detailed Description

streaming implementation for murmurhash3 128 (x64). Constructs the hash in 3 stages: init, append, finalize.

Definition at line 462 of file hash.hpp.

Member Function Documentation

◆ append()

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

Definition at line 131 of file hash.cpp.

◆ finalize()

void mfem::Hasher::finalize ( )

Definition at line 158 of file hash.cpp.

◆ init()

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

resets this hasher back to an initial seed

Definition at line 88 of file hash.cpp.

Member Data Documentation

◆ data

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

where the final hash result is stored after finalize. Use data[1] when only 64 bits are required.

Definition at line 466 of file hash.hpp.


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