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

#include <hash.h>

Inheritance diagram for CHashWriter:
Collaboration diagram for CHashWriter:

Public Member Functions

 CHashWriter (int nTypeIn, int nVersionIn)
int GetType () const
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 nType
const int nVersion

Detailed Description

Definition at line 147 of file hash.h.

Constructor & Destructor Documentation

◆ CHashWriter()

CHashWriter::CHashWriter ( int  nTypeIn,
int  nVersionIn 

Definition at line 154 of file hash.h.

Member Function Documentation

◆ GetType()

int CHashWriter::GetType ( ) const

Definition at line 156 of file hash.h.

◆ GetVersion()

int CHashWriter::GetVersion ( ) const

Definition at line 157 of file hash.h.

◆ operator<<()

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

Definition at line 160 of file hash.h.

Here is the call graph for this function:

Member Data Documentation

◆ nType

const int CHashWriter::nType

Definition at line 150 of file hash.h.

◆ nVersion

const int CHashWriter::nVersion

Definition at line 151 of file hash.h.

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