Dash Core  0.12.2.1
P2P Digital Currency
CHashWriter Class Reference

#include <hash.h>

Public Member Functions

 CHashWriter (int nTypeIn, int nVersionIn)
 
CHashWriterwrite (const char *pch, size_t size)
 
uint256 GetHash ()
 
template<typename T >
CHashWriteroperator<< (const T &obj)
 

Public Attributes

int nType
 
int nVersion
 

Private Attributes

CHash256 ctx
 

Detailed Description

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

Definition at line 237 of file hash.h.

Constructor & Destructor Documentation

◆ CHashWriter()

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

Definition at line 246 of file hash.h.

Member Function Documentation

◆ GetHash()

◆ operator<<()

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

Definition at line 261 of file hash.h.

◆ write()

CHashWriter& CHashWriter::write ( const char *  pch,
size_t  size 
)
inline

Definition at line 248 of file hash.h.

Member Data Documentation

◆ ctx

CHash256 CHashWriter::ctx
private

Definition at line 240 of file hash.h.

Referenced by GetHash(), and write().

◆ nType

int CHashWriter::nType

Definition at line 243 of file hash.h.

Referenced by operator<<().

◆ nVersion

int CHashWriter::nVersion

Definition at line 244 of file hash.h.

Referenced by operator<<().


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