VectorWriter::VectorWriter

Construct a writer and immediately serialize the given items into the vector.

Synopsis

Declared in <streams.h>

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

Parameters

NameDescription
vchDataInReferenced byte vector to overwrite/append.
nPosInStarting position; vector index where writes should start.
argsItems to serialize into the vector starting at nPosIn.