(
bytes: ByteArray,
opts: BytesToBigIntOpts = {},
)
| 114 | * // 420n |
| 115 | */ |
| 116 | export function bytesToBigInt( |
| 117 | bytes: ByteArray, |
| 118 | opts: BytesToBigIntOpts = {}, |
| 119 | ): bigint { |
| 120 | if (typeof opts.size !== 'undefined') assertSize(bytes, { size: opts.size }) |
| 121 | const hex = bytesToHex(bytes) |
| 122 | return hexToBigInt(hex, opts) |
| 123 | } |
| 124 | |
| 125 | export type BytesToBoolOpts = { |
| 126 | /** Size of the bytes. */ |
no test coverage detected