Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
ByteVectorHash Class Referencefinal

Implementation of Hash named requirement for types that internally store a byte array. More...

#include <bytevectorhash.h>

Public Member Functions

 ByteVectorHash ()
 
size_t operator() (const std::vector< unsigned char > &input) const
 

Private Attributes

uint64_t m_k0
 
uint64_t m_k1
 

Detailed Description

Implementation of Hash named requirement for types that internally store a byte array.

This may be used as the hash function in std::unordered_set or std::unordered_map over such types. Internally, this uses a random instance of SipHash-2-4.

Definition at line 17 of file bytevectorhash.h.

Constructor & Destructor Documentation

◆ ByteVectorHash()

ByteVectorHash::ByteVectorHash ( )

Definition at line 11 of file bytevectorhash.cpp.

Member Function Documentation

◆ operator()()

size_t ByteVectorHash::operator() ( const std::vector< unsigned char > &  input) const

Definition at line 17 of file bytevectorhash.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ m_k0

uint64_t ByteVectorHash::m_k0
private

Definition at line 20 of file bytevectorhash.h.

◆ m_k1

uint64_t ByteVectorHash::m_k1
private

Definition at line 20 of file bytevectorhash.h.


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