(bytes: Uint8Array, offset: number)
| 79 | } |
| 80 | |
| 81 | function readHeaderU32(bytes: Uint8Array, offset: number): number | null { |
| 82 | if (offset < 0 || offset + 4 > bytes.byteLength) return null; |
| 83 | try { |
| 84 | return new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength).getUint32(offset, true); |
| 85 | } catch { |
| 86 | return null; |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | function decodeOpcodeHistogram(bytes: Uint8Array): Readonly<{ |
| 91 | histogram: Readonly<Record<string, number>>; |
no outgoing calls
no test coverage detected