Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | 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)
 

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

Constructor & Destructor Documentation

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

Definition at line 139 of file hash.h.

Member Function Documentation

uint256 CHashWriter::GetHash ( )
inline

Definition at line 149 of file hash.h.

Here is the call graph for this function:

Here is the caller graph for this function:

int CHashWriter::GetType ( ) const
inline

Definition at line 141 of file hash.h.

int CHashWriter::GetVersion ( ) const
inline

Definition at line 142 of file hash.h.

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

Definition at line 156 of file hash.h.

Here is the call graph for this function:

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

Definition at line 144 of file hash.h.

Here is the call graph for this function:

Member Data Documentation

CHash256 CHashWriter::ctx
private

Definition at line 133 of file hash.h.

const int CHashWriter::nType
private

Definition at line 135 of file hash.h.

const int CHashWriter::nVersion
private

Definition at line 136 of file hash.h.


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