readVarint

Read a VarInt-encoded value from a data stream

Removes the bytes that represent the data from the stream

T
readVarint
(
T = ulong
R
)
(
auto ref R src
)
if (
isInputRange!R &&
is(ElementType!R : const ubyte)
)

Parameters

src
Type: R

The data stream

Return Value

Type: T

The decoded value

Meta