Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

#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)
 
size_t size () const
 

Private Attributes

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

Detailed Description

Definition at line 29 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 40 of file streams.h.

References nPos, and vchData.

◆ 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 50 of file streams.h.

References SerializeMany().

Member Function Documentation

◆ GetType()

int CVectorWriter::GetType ( ) const
inline

Definition at line 77 of file streams.h.

References nType.

◆ GetVersion()

int CVectorWriter::GetVersion ( ) const
inline

Definition at line 73 of file streams.h.

References nVersion.

◆ operator<<()

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

Definition at line 67 of file streams.h.

References Serialize().

◆ seek()

void CVectorWriter::seek ( size_t  nSize)
inline

Definition at line 81 of file streams.h.

References nPos, and vchData.

◆ size()

size_t CVectorWriter::size ( ) const
inline

Definition at line 87 of file streams.h.

References nPos, and vchData.

◆ write()

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

Definition at line 54 of file streams.h.

References memcpy(), nPos, and vchData.

Member Data Documentation

◆ nPos

size_t CVectorWriter::nPos
private

Definition at line 95 of file streams.h.

Referenced by CVectorWriter(), seek(), size(), and write().

◆ nType

const int CVectorWriter::nType
private

Definition at line 92 of file streams.h.

Referenced by GetType().

◆ nVersion

const int CVectorWriter::nVersion
private

Definition at line 93 of file streams.h.

Referenced by GetVersion().

◆ vchData

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

Definition at line 94 of file streams.h.

Referenced by CVectorWriter(), seek(), size(), and write().


The documentation for this class was generated from the following file:
Released under the MIT license