varEncode

Encodes val as a variable length integer.

static pure
ubyte[]
varEncode
(
T
)
(
T val
)

Parameters

val T

The integer to be encoded.

Return Value

Type: ubyte[]

Array of bytes representing val in its variable length form.

Meta