Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
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 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.
 
uint256 GetSHA256 ()
 Compute the SHA256 hash of all data written to this object.
 
uint64_t GetCheapHash ()
 Returns the first 64 bits from the resulting hash.
 
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 
)
inline

Definition at line 153 of file hash.h.

Member Function Documentation

◆ GetType()

int CHashWriter::GetType ( ) const
inline

Definition at line 156 of file hash.h.

◆ 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 159 of file hash.h.

Here is the call graph for this function:

Member Data Documentation

◆ nType

const int CHashWriter::nType
private

Definition at line 149 of file hash.h.

◆ nVersion

const int CHashWriter::nVersion
private

Definition at line 150 of file hash.h.


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