Class AsyncDecompress
Index
Constructors
constructor
- new AsyncDecompress(
opts: InflateStreamOptions,
cb?: AsyncFlateStreamHandler,
): AsyncDecompress Creates an asynchronous decompression stream
Parameters
- opts: InflateStreamOptions
The decompression options
Optional
cb: AsyncFlateStreamHandlerThe callback to call whenever data is decompressed
Returns AsyncDecompress
- opts: InflateStreamOptions
- new AsyncDecompress(cb?: AsyncFlateStreamHandler): AsyncDecompress
Creates an asynchronous decompression stream
Parameters
Optional
cb: AsyncFlateStreamHandlerThe callback to call whenever data is decompressed
Returns AsyncDecompress
Methods
push
- push(chunk: Uint8Array<ArrayBufferLike>, final?: boolean): void
Pushes a chunk to be decompressed
Parameters
- chunk: Uint8Array<ArrayBufferLike>
The chunk to push
Optional
final: booleanWhether this is the last chunk
Returns void
- chunk: Uint8Array<ArrayBufferLike>
Asynchronous streaming GZIP, Zlib, or raw DEFLATE decompression