(
bytes: ByteArray,
opts: BytesToNumberOpts = {},
)
| 182 | * // 420 |
| 183 | */ |
| 184 | export function bytesToNumber( |
| 185 | bytes: ByteArray, |
| 186 | opts: BytesToNumberOpts = {}, |
| 187 | ): number { |
| 188 | if (typeof opts.size !== 'undefined') assertSize(bytes, { size: opts.size }) |
| 189 | const hex = bytesToHex(bytes) |
| 190 | return hexToNumber(hex, opts) |
| 191 | } |
| 192 | |
| 193 | export type BytesToStringOpts = { |
| 194 | /** Size of the bytes. */ |
no test coverage detected