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.
Parameters
Section titled “Parameters”The number to encode.
number
| bigint
Returns
Section titled “Returns”Uint8Array