Return the number of bytes the VarInt encoding of a value occupies.
Declared in <serialize.h>
template<
VarIntMode Mode,
typename I>
unsigned int
GetSizeOfVarInt(I n);
The number of bytes its VarInt encoding occupies.
| Name | Description |
|---|---|
| n | The value that would be encoded as a VarInt. |