[#VectorWriter-2constructor-04]
= xref:VectorWriter.adoc[VectorWriter]::VectorWriter
:relfileprefix: ../
:mrdocs:

Construct a writer that overwrites and&sol;or appends to an existing byte vector&period;

== Synopsis

Declared in `&lt;streams&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
VectorWriter(
    std::vector&lt;unsigned char&gt;& vchDataIn,
    size&lowbar;t nPosIn);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *vchDataIn*
| Referenced byte vector to overwrite&sol;append&period;
| *nPosIn*
| Starting position&semi; vector index where writes should start&period; The vector will initially grow as necessary to max(nPosIn, vec&period;size())&period; So to append, use vec&period;size()&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
