VariableLengthSequence.unpack

Decode byte sequence from VLS

class VariableLengthSequence
static
ubyte[]
unpack
(
ubyte[] bytes...
)

Parameters

bytes ubyte[]

Array of unsigned bytes for constructing VLS.

Throws

Exception on empty bytes array.

Typical usage:

// return array [0, 1, 2]
auto vls = VariableLengthSequence.unpack([3, 0, 0, 1, 2]);

Meta