Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

A writer stream (for serialization) that computes a 256-bit hash. More...

#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
 
void write (const char *pch, size_t size)
 
uint256 GetHash ()
 
template<typename T >
CHashWriteroperator<< (const T &obj)
 

Private Attributes

CHash256 ctx
 
const int nType
 
const int nVersion
 

Detailed Description

A writer stream (for serialization) that computes a 256-bit hash.

Definition at line 184 of file hash.h.

Constructor & Destructor Documentation

◆ CHashWriter()

CHashWriter::CHashWriter ( int  nTypeIn,
int  nVersionIn 
)
inline

Definition at line 193 of file hash.h.

Member Function Documentation

◆ GetHash()

◆ GetType()

int CHashWriter::GetType ( ) const
inline

Definition at line 195 of file hash.h.

References nType.

◆ GetVersion()

int CHashWriter::GetVersion ( ) const
inline

Definition at line 196 of file hash.h.

References nVersion.

◆ operator<<()

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

Definition at line 210 of file hash.h.

References Serialize().

◆ write()

Member Data Documentation

◆ ctx

CHash256 CHashWriter::ctx
private

Definition at line 187 of file hash.h.

Referenced by GetHash(), and write().

◆ nType

const int CHashWriter::nType
private

Definition at line 189 of file hash.h.

Referenced by GetType().

◆ nVersion

const int CHashWriter::nVersion
private

Definition at line 190 of file hash.h.

Referenced by GetVersion().


The documentation for this class was generated from the following file:
Released under the MIT license