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

#include <streams.h>

Public Member Functions

 VectorWriter (std::vector< unsigned char > &vchDataIn, size_t nPosIn)
 
template<typename... Args>
 VectorWriter (std::vector< unsigned char > &vchDataIn, size_t nPosIn, Args &&... args)
 
void write (Span< const std::byte > src)
 
template<typename T >
VectorWriteroperator<< (const T &obj)
 

Private Attributes

std::vector< unsigned char > & vchData
 
size_t nPos
 

Detailed Description

Definition at line 52 of file streams.h.

Constructor & Destructor Documentation

◆ VectorWriter() [1/2]

VectorWriter::VectorWriter ( std::vector< unsigned char > &  vchDataIn,
size_t  nPosIn 
)
inline

Definition at line 60 of file streams.h.

◆ VectorWriter() [2/2]

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

Definition at line 70 of file streams.h.

Here is the call graph for this function:

Member Function Documentation

◆ operator<<()

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

Definition at line 87 of file streams.h.

Here is the call graph for this function:

◆ write()

void VectorWriter::write ( Span< const std::byte >  src)
inline

Definition at line 74 of file streams.h.

Here is the call graph for this function:

Member Data Documentation

◆ nPos

size_t VectorWriter::nPos
private

Definition at line 95 of file streams.h.

◆ vchData

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

Definition at line 94 of file streams.h.


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