MCPcopy Create free account
hub / github.com/codedogQBY/ReadAny / parseChapterOffsets

Function parseChapterOffsets

packages/core/src/utils/umd-parser.ts:367–375  ·  view source on GitHub ↗
(data: Uint8Array | undefined)

Source from the content-addressed store, hash-verified

365}
366
367function 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
377function decompressContent(a: AssembleArgs): Uint8Array {
378 const indexData = a.dataById.get(a.idContentBlocks);

Callers 1

assembleFunction · 0.85

Calls 2

readUint32LEFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected