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

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

#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
 
void write (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 231 of file hash.h.

Constructor & Destructor Documentation

◆ CHashWriter()

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

Definition at line 240 of file hash.h.

Member Function Documentation

◆ GetHash()

uint256 CHashWriter::GetHash ( )
inline

Definition at line 250 of file hash.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetType()

int CHashWriter::GetType ( ) const
inline

Definition at line 242 of file hash.h.

◆ GetVersion()

int CHashWriter::GetVersion ( ) const
inline

Definition at line 243 of file hash.h.

◆ operator<<()

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

Definition at line 257 of file hash.h.

Here is the call graph for this function:

◆ write()

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

Definition at line 245 of file hash.h.

Here is the call graph for this function:

Member Data Documentation

◆ ctx

CHash256 CHashWriter::ctx
private

Definition at line 234 of file hash.h.

◆ nType

int CHashWriter::nType

Definition at line 237 of file hash.h.

◆ nVersion

int CHashWriter::nVersion

Definition at line 238 of file hash.h.


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