Electroneum
Loading...
Searching...
No Matches
std::hash< output_data > Struct Reference

Public Member Functions

size_t operator() (const output_data &od) const

Detailed Description

Definition at line 59 of file blockchain_usage.cpp.

Member Function Documentation

◆ operator()()

size_t std::hash< output_data >::operator() ( const output_data & od) const
inline

Definition at line 61 of file blockchain_usage.cpp.

62 {
63 const uint64_t data[2] = {od.amount, od.index};
65 crypto::cn_fast_hash(data, 2 * sizeof(uint64_t), h);
66 return reinterpret_cast<const std::size_t &>(h);
67 }
void cn_fast_hash(const void *data, size_t length, char *hash)
POD_CLASS hash
Definition hash.h:50
unsigned __int64 uint64_t
Definition stdint.h:136
Here is the call graph for this function:

The documentation for this struct was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/blockchain_utilities/blockchain_usage.cpp