Bitcoin
Public Member Functions | Protected Attributes | List of all members
CSizeComputer Class Reference

#include <serialize.h>

Public Member Functions

 CSizeComputer (int nVersionIn)
 
void write (const char *psz, size_t _nSize)
 
void seek (size_t _nSize)
 
template<typename T >
CSizeComputeroperator<< (const T &obj)
 
size_t size () const
 
int GetVersion () const
 

Protected Attributes

size_t nSize
 
const int nVersion
 

Constructor & Destructor Documentation

◆ CSizeComputer()

CSizeComputer::CSizeComputer ( int  nVersionIn)
inlineexplicit

Member Function Documentation

◆ GetVersion()

int CSizeComputer::GetVersion ( ) const
inline

◆ operator<<()

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

◆ seek()

void CSizeComputer::seek ( size_t  _nSize)
inline

Pretend _nSize bytes are written, without specifying them.

◆ size()

size_t CSizeComputer::size ( ) const
inline

◆ write()

void CSizeComputer::write ( const char *  psz,
size_t  _nSize 
)
inline

Member Data Documentation

◆ nSize

size_t CSizeComputer::nSize
protected

◆ nVersion

const int CSizeComputer::nVersion
protected

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