asyncinflate.md 2.0 KB

Class: AsyncInflate

Asynchronous streaming DEFLATE decompression

Hierarchy

  • AsyncInflate

Index

Constructors

Properties

Methods

Constructors

constructor

+ new AsyncInflate(opts: InflateStreamOptions, cb?: AsyncFlateStreamHandler): AsyncInflate

Creates an asynchronous DEFLATE decompression stream

Parameters:

Name Type Description
opts InflateStreamOptions The decompression options
cb? AsyncFlateStreamHandler The callback to call whenever data is inflated

Returns: AsyncInflate

+ new AsyncInflate(cb?: AsyncFlateStreamHandler): AsyncInflate

Creates an asynchronous DEFLATE decompression stream

Parameters:

Name Type Description
cb? AsyncFlateStreamHandler The callback to call whenever data is inflated

Returns: AsyncInflate

Properties

ondata

ondata: AsyncFlateStreamHandler

The handler to call whenever data is available


terminate

terminate: AsyncTerminable

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

Methods

push

push(chunk: Uint8Array, final?: boolean): void

Pushes a chunk to be inflated

Parameters:

Name Type Description
chunk Uint8Array The chunk to push
final? boolean Whether this is the last chunk

Returns: void