Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AsyncDecompress

Asynchronous streaming GZIP, Zlib, or raw DEFLATE decompression

class AsyncDecompress {
constructor(cb?: AsyncFlateStreamHandler);
private G;
private i;
private I;
private Z;
queuedSize: number;
 
push(chunk: Uint8Array, final?: boolean): void;
}

§Constructors

§
new AsyncDecompress(opts: InflateStreamOptions, cb?: AsyncFlateStreamHandler)
[src]

Creates an asynchronous decompression stream

@param opts

The decompression options

@param cb

The callback to call whenever data is decompressed

§
new AsyncDecompress(cb?: AsyncFlateStreamHandler)
[src]

Creates an asynchronous decompression stream

@param cb

The callback to call whenever data is decompressed

§Properties

§

The handler to call whenever data is available

§

The handler to call whenever buffered source data is processed (i.e. queuedSize updates)

§
queuedSize: number
[src]

The number of compressed bytes buffered in the stream

§Methods

§
push(chunk: Uint8Array, final?: boolean): void
[src]

Pushes a chunk to be decompressed

@param chunk

The chunk to push

@param final

Whether this is the last chunk