VariableLengthSequence.pack

Encode byte sequence as VLS

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

Parameters

bytes ubyte[]

Array of unsigned bytes for constructing VLS.

Typical usage:

// return array [3, 0, 0, 1, 2]
auto vls = VariableLengthSequence.pack([0x00, 0x01, 0x02]);

Meta