WriteVarInt

WriteVarInt overloads

Synopses

Declared in <serialize.h>

Account for a VarInt encoding when computing a serialized size.

template<typename I>
void
WriteVarInt(
    SizeComputer& os,
    I n);
» more...

Write a value to a stream in VarInt encoding.

template<
    typename Stream,
    VarIntMode Mode,
    typename I>
void
WriteVarInt(
    Stream& os,
    I n);
» more...

Parameters

NameDescription
osThe size computer to update.
nThe value that would be encoded as a VarInt.