External module "utils/buffer"
Functions
Const bigIntToBuffer
- bigIntToBuffer(bigInt: bigint, length?: undefined | number): Buffer
-
Parameters
-
bigInt: bigint
-
Optional length: undefined | number
Returns Buffer
Const bufferToBigInt
- bufferToBigInt(buffer: Buffer): bigint
-
Parameters
Returns bigint
Const dehexify
- dehexify(data: string): Buffer
-
Parameters
Returns Buffer
Const hexify
- hexify(data: Uint8Array): string
-
Parameters
Returns string
Const numberToBuffer
- numberToBuffer(data: number, byteLength: number): Buffer
-
Parameters
-
data: number
-
byteLength: number
Returns Buffer
Get a bigint as Buffer. If a length (in bytes) is specified, the Buffer will be padded to this length.