[#GetSizeOfVarInt] = GetSizeOfVarInt :mrdocs: Return the number of bytes the VarInt encoding of a value occupies. == Synopsis Declared in `<serialize.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< xref:VarIntMode.adoc[VarIntMode] Mode, typename I> unsigned int GetSizeOfVarInt(I n); ---- == Return Value The number of bytes its VarInt encoding occupies. == Parameters [cols="1,4"] |=== | Name| Description | *n* | The value that would be encoded as a VarInt. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#