BPHash
General object hashing library for C++
|
Base class for a hash implementation. More...
#include <HashImpl.hpp>
Public Member Functions | |
virtual void | update (void const *data, size_t nbytes)=0 |
Add some data to the hash. More... | |
virtual HashValue | finalize (void)=0 |
Finish hashing and report the hash. More... | |
virtual void | reset (void)=0 |
Zero out the hash. More... | |
virtual | ~HashImpl ()=default |
Base class for a hash implementation.
Implementations that actually hash data must derive from this class.
Definition at line 22 of file HashImpl.hpp.
|
virtualdefault |
|
pure virtual |
Finish hashing and report the hash.
Finish hashing any remaining data if necessary, and perform and last steps. Then, return the hash.
Implemented in bphash::detail::MurmurHash3_128_x64, bphash::detail::MurmurHash3_32_x32, bphash::detail::MurmurHash3_64_x64, and bphash::detail::MurmurHash3_32_x64.
|
pure virtual |
Zero out the hash.
After this, you can start hashing something else again. May be called before or after finalize.
Implemented in bphash::detail::MurmurHash3_128_x64, and bphash::detail::MurmurHash3_32_x32.
|
pure virtual |
Add some data to the hash.
[in] | data | The raw data to hash |
[in] | nbytes | Number of bytes pointed to by data |
Implemented in bphash::detail::MurmurHash3_128_x64, and bphash::detail::MurmurHash3_32_x32.