Convert a Uint8Array to a number.
Uint8Array
number
To convert a Uint8Array to a bigint instead, use bytesToBigInt.
bigint
The number.
If the resulting number is not a safe integer.
The bytes to convert to a number.
Convert a
Uint8Array
to anumber
.To convert a
Uint8Array
to abigint
instead, use bytesToBigInt.Returns
The number.
Throws
If the resulting number is not a safe integer.