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);

Write a value to a stream in VarInt encoding.

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

Parameters

Name

Description

os

The size computer to update.

n

The value that would be encoded as a VarInt.

Created with MrDocs