[#VectorWriter-2constructor-04] = xref:VectorWriter.adoc[VectorWriter]::VectorWriter :relfileprefix: ../ :mrdocs: Construct a writer that overwrites and/or appends to an existing byte vector. == Synopsis Declared in `<streams.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- VectorWriter( std::vector<unsigned char>& vchDataIn, size_t nPosIn); ---- == Parameters [cols="1,4"] |=== | 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(). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#