Leb128

Leb128

object Leb128

Encapsulates LEB-128 integer encoding logic.

For more details, see the wikipedia page.

Methods

encodeUnsigned

fun encodeUnsigned(value: Int): Sequence<Byte>

Encodes the provided value as an unsigned integer using LEB128 into a sequence of Bytes.

Parameters

Name Description
value: Int

ReturnValue

Name Description
Sequence<Byte>