Bitcoin Core  0.15.99
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 116 of file hash.h.

Constructor & Destructor Documentation

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

Definition at line 125 of file hash.h.

Member Function Documentation

uint256 CHashWriter::GetHash ( )
inline

Definition at line 135 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 127 of file hash.h.

int CHashWriter::GetVersion ( ) const
inline

Definition at line 128 of file hash.h.

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

Definition at line 142 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 130 of file hash.h.

Here is the call graph for this function:

Member Data Documentation

CHash256 CHashWriter::ctx
private

Definition at line 119 of file hash.h.

const int CHashWriter::nType
private

Definition at line 121 of file hash.h.

const int CHashWriter::nVersion
private

Definition at line 122 of file hash.h.


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