Bitcoin Core  26.99.0
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
CHashWriter Class Reference

#include <hash.h>

Inheritance diagram for CHashWriter:
[legend]
Collaboration diagram for CHashWriter:
[legend]

Public Member Functions

 CHashWriter (int nVersionIn)
 
int GetVersion () const
 
template<typename T >
CHashWriteroperator<< (const T &obj)
 
- Public Member Functions inherited from HashWriter
void write (Span< const std::byte > src)
 
uint256 GetHash ()
 Compute the double-SHA256 hash of all data written to this object. More...
 
uint256 GetSHA256 ()
 Compute the SHA256 hash of all data written to this object. More...
 
uint64_t GetCheapHash ()
 Returns the first 64 bits from the resulting hash. More...
 
template<typename T >
HashWriteroperator<< (const T &obj)
 

Private Attributes

const int nVersion
 

Detailed Description

Definition at line 149 of file hash.h.

Constructor & Destructor Documentation

◆ CHashWriter()

CHashWriter::CHashWriter ( int  nVersionIn)
inline

Definition at line 155 of file hash.h.

Member Function Documentation

◆ GetVersion()

int CHashWriter::GetVersion ( ) const
inline

Definition at line 157 of file hash.h.

◆ operator<<()

template<typename T >
CHashWriter& CHashWriter::operator<< ( const T obj)
inline

Definition at line 160 of file hash.h.

Here is the call graph for this function:

Member Data Documentation

◆ nVersion

const int CHashWriter::nVersion
private

Definition at line 152 of file hash.h.


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