Convert a Uint8Array to a bigint.
Uint8Array
bigint
To convert a Uint8Array to a number instead, use bytesToNumber. To convert a two's complement encoded Uint8Array to a bigint, use bytesToSignedBigInt.
number
The bigint.
The bytes to convert to a bigint.
Convert a
Uint8Array
to abigint
.To convert a
Uint8Array
to anumber
instead, use bytesToNumber. To convert a two's complement encodedUint8Array
to abigint
, use bytesToSignedBigInt.Returns
The
bigint
.