VectorWriter::VectorWriter

Construct a writer that overwrites and/or appends to an existing byte vector.

Synopsis

Declared in <streams.h>

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

Parameters

NameDescription
vchDataInReferenced byte vector to overwrite/append.
nPosInStarting position; vector index where writes should start. The vector will initially grow as necessary to max(nPosIn, vec.size()). So to append, use vec.size().