Skip to content

SlebEncode

slebEncode(value): Uint8Array

Defined in: packages/candid/src/utils/leb128.ts:93

Encode a number (or bigint) into a Buffer, with support for negative numbers. The number will be floored to the nearest integer.

The number to encode.

number | bigint

Uint8Array