[#VectorWriter-2constructor-07] = xref:VectorWriter.adoc[VectorWriter]::VectorWriter :relfileprefix: ../ :mrdocs: Constructors == Synopses Declared in `<streams.h>` Construct a writer that overwrites and/or appends to an existing byte vector. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:VectorWriter/2constructor-04.adoc[VectorWriter]( std::vector<unsigned char>& vchDataIn, size_t nPosIn); ---- [.small]#xref:VectorWriter/2constructor-04.adoc[_» more..._]# Construct a writer and immediately serialize the given items into the vector. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename... Args> xref:VectorWriter/2constructor-0e.adoc[VectorWriter]( std::vector<unsigned char>& vchDataIn, size_t nPosIn, Args&&... args); ---- [.small]#xref:VectorWriter/2constructor-0e.adoc[_» more..._]# == 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(). | *args* | Items to serialize into the vector starting at nPosIn. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#