HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions
v1::sip_hash< C, D > Class Template Reference

Public Member Functions

constexpr sip_hash (sip_hash const &) noexcept=default
 
constexpr sip_hash (sip_hash &&) noexcept=default
 
constexpr sip_hashoperator= (sip_hash const &) noexcept=default
 
constexpr sip_hashoperator= (sip_hash &&) noexcept=default
 
 sip_hash (detail::sip_hash_seed_tag) noexcept
 
 sip_hash () noexcept
 Create a sip_hash initialized with the global initialized key.
 
constexpr sip_hash (uint64_t k0, uint64_t k1) noexcept
 
uint64_t finish () noexcept
 
void add (void const *data, size_t size) noexcept
 
uint64_t complete_message (void const *data, size_t size) const noexcept
 Hash a complete message.
 
uint64_t operator() (void const *data, size_t size) const noexcept
 Hash a complete message.
 

Constructor & Destructor Documentation

◆ sip_hash()

template<size_t C, size_t D>
v1::sip_hash< C, D >::sip_hash ( )
noexcept

Create a sip_hash initialized with the global initialized key.

Member Function Documentation

◆ complete_message()

template<size_t C, size_t D>
uint64_t v1::sip_hash< C, D >::complete_message ( void const * data,
size_t size ) const
inlinenoexcept

Hash a complete message.

This function is significantly faster than using add() and finish().

Parameters
dataThe data to hash.
sizeThe size of the data in bytes.
Returns
The value of the hash.
Note
The sip_hash instance can be reused when using this function

◆ operator()()

template<size_t C, size_t D>
uint64_t v1::sip_hash< C, D >::operator() ( void const * data,
size_t size ) const
inlinenoexcept

Hash a complete message.

See also
complete_message()

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