Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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 (std::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 34 of file streams.h.

Constructor & Destructor Documentation

◆ VectorWriter() [1/2]

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

Definition at line 42 of file streams.h.

Here is the caller graph for this function:

◆ VectorWriter() [2/2]

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

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

Here is the call graph for this function:

◆ write()

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

Definition at line 56 of file streams.h.

Here is the call graph for this function:

Member Data Documentation

◆ nPos

size_t VectorWriter::nPos
private

Definition at line 77 of file streams.h.

◆ vchData

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

Definition at line 76 of file streams.h.


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