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
Name |
Description |
vchDataIn |
Referenced byte vector to overwrite/append. |
nPosIn |
Starting 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(). |
Created with MrDocs