[#WriteVarInt-0a]
= WriteVarInt
:mrdocs:

Write a value to a stream in VarInt encoding&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename Stream,
    xref:VarIntMode.adoc[VarIntMode] Mode,
    typename I&gt;
void
WriteVarInt(
    Stream& os,
    I n);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *os*
| The output stream&period;
| *n*
| The value to encode as a VarInt&period;
|===


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