UNPKG

@gmod/bgzf-filehandle

Version:

read from a compressed bgzip file (with .gzi) as if it were uncompressed

13 lines (12 loc) 533 B
import GziIndex from './gziIndex.ts'; import type { GenericFilehandle } from 'generic-filehandle2'; export default class BgzFilehandle { filehandle: GenericFilehandle; gzi: GziIndex; constructor({ filehandle, gziFilehandle, }: { filehandle: GenericFilehandle; gziFilehandle: GenericFilehandle; }); _readAndUncompressBlock(compressedPosition: number, nextCompressedPosition: number): Promise<Uint8Array<ArrayBuffer>>; read(length: number, position: number): Promise<Uint8Array<ArrayBuffer>>; }