[#WriteVarInt-025] = WriteVarInt :mrdocs: `WriteVarInt` overloads == Synopses Declared in `<serialize.h>` Account for a VarInt encoding when computing a serialized size. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename I> void xref:WriteVarInt-022.adoc[WriteVarInt]( xref:SizeComputer.adoc[SizeComputer]& os, I n); ---- [.small]#xref:WriteVarInt-022.adoc[_» more..._]# Write a value to a stream in VarInt encoding. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename Stream, xref:VarIntMode.adoc[VarIntMode] Mode, typename I> void xref:WriteVarInt-0a.adoc[WriteVarInt]( Stream& os, I n); ---- [.small]#xref:WriteVarInt-0a.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *os* | The size computer to update. | *n* | The value that would be encoded as a VarInt. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#