Bitcoin Core  0.15.99
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
CVectorWriter Class Reference

#include <streams.h>

Public Member Functions

 CVectorWriter (int nTypeIn, int nVersionIn, std::vector< unsigned char > &vchDataIn, size_t nPosIn)
 
template<typename... Args>
 CVectorWriter (int nTypeIn, int nVersionIn, std::vector< unsigned char > &vchDataIn, size_t nPosIn, Args &&... args)
 
void write (const char *pch, size_t nSize)
 
template<typename T >
CVectorWriteroperator<< (const T &obj)
 
int GetVersion () const
 
int GetType () const
 
void seek (size_t nSize)
 

Private Attributes

const int nType
 
const int nVersion
 
std::vector< unsigned char > & vchData
 
size_t nPos
 

Detailed Description

Definition at line 77 of file streams.h.

Constructor & Destructor Documentation

◆ CVectorWriter() [1/2]

CVectorWriter::CVectorWriter ( int  nTypeIn,
int  nVersionIn,
std::vector< unsigned char > &  vchDataIn,
size_t  nPosIn 
)
inline

Definition at line 88 of file streams.h.

◆ CVectorWriter() [2/2]

template<typename... Args>
CVectorWriter::CVectorWriter ( int  nTypeIn,
int  nVersionIn,
std::vector< unsigned char > &  vchDataIn,
size_t  nPosIn,
Args &&...  args 
)
inline

Definition at line 98 of file streams.h.

Here is the call graph for this function:

Member Function Documentation

◆ GetType()

int CVectorWriter::GetType ( ) const
inline

Definition at line 125 of file streams.h.

◆ GetVersion()

int CVectorWriter::GetVersion ( ) const
inline

Definition at line 121 of file streams.h.

◆ operator<<()

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

Definition at line 115 of file streams.h.

Here is the call graph for this function:

◆ seek()

void CVectorWriter::seek ( size_t  nSize)
inline

Definition at line 129 of file streams.h.

◆ write()

void CVectorWriter::write ( const char *  pch,
size_t  nSize 
)
inline

Definition at line 102 of file streams.h.

Here is the call graph for this function:

Member Data Documentation

◆ nPos

size_t CVectorWriter::nPos
private

Definition at line 139 of file streams.h.

◆ nType

const int CVectorWriter::nType
private

Definition at line 136 of file streams.h.

◆ nVersion

const int CVectorWriter::nVersion
private

Definition at line 137 of file streams.h.

◆ vchData

std::vector<unsigned char>& CVectorWriter::vchData
private

Definition at line 138 of file streams.h.


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