Convert a Uint8Array to a signed bigint. This assumes that the bytes are encoded in two's complement.
Uint8Array
bigint
To convert a Uint8Array to an unsigned bigint instead, use bytesToBigInt.
https://en.wikipedia.org/wiki/Two%27s_complement
The signed bigint.
The bytes to convert to a signed bigint.
Convert a
Uint8Array
to a signedbigint
. This assumes that the bytes are encoded in two's complement.To convert a
Uint8Array
to an unsignedbigint
instead, use bytesToBigInt.See
https://en.wikipedia.org/wiki/Two%27s_complement
Returns
The signed
bigint
.