(data: Uint8Array | undefined)
| 365 | } |
| 366 | |
| 367 | function parseChapterOffsets(data: Uint8Array | undefined): number[] { |
| 368 | if (!data) return []; |
| 369 | const out: number[] = []; |
| 370 | const count = Math.floor(data.length / 4); |
| 371 | for (let i = 0; i < count; i++) { |
| 372 | out.push(readUint32LE(data, i * 4)); |
| 373 | } |
| 374 | return out; |
| 375 | } |
| 376 | |
| 377 | function decompressContent(a: AssembleArgs): Uint8Array { |
| 378 | const indexData = a.dataById.get(a.idContentBlocks); |
no test coverage detected