WriteVarInt

Account for a VarInt encoding when computing a serialized size.

Synopsis

Declared in <serialize.h>

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

Parameters

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