Construct a writer that overwrites and/or appends to an existing byte vector.
Declared in <streams.h>
VectorWriter(
std::vector<unsigned char>& vchDataIn,
size_t nPosIn);
| 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(). |