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

AsyncGunzip

Asynchronous streaming single or multi-member GZIP decompression

class AsyncGunzip {
constructor(cb?: AsyncFlateStreamHandler);
queuedSize: number;
terminate: AsyncTerminable;
 
push(chunk: Uint8Array, final?: boolean): void;
}

§Constructors

§

Creates an asynchronous GUNZIP stream

@param opts

The decompression options

@param cb

The callback to call whenever data is inflated

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

Creates an asynchronous GUNZIP stream

@param cb

The callback to call whenever data is inflated

§Properties

§

The handler to call whenever data is available

§

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

§

The handler to call whenever a new GZIP member is found

§
queuedSize: number
[src]

The number of compressed bytes buffered in the stream

§

A method to terminate the stream's internal worker. Subsequent calls to push() will silently fail.

§Methods

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

Pushes a chunk to be GUNZIPped

@param chunk

The chunk to push

@param final

Whether this is the last chunk