Functions
Const getRandomBytes
- getRandomBytes(length: number): Uint8Array
-
Parameters
Returns Uint8Array
Const numberToBuffer
- numberToBuffer(data: number, byteLength: 1 | 2 | 4): Uint8Array
-
Parameters
-
data: number
-
byteLength: 1 | 2 | 4
Returns Uint8Array
Write a number to a Uint8Array with arbitrary length.