asyncunzlib.md 1.2 KB

Class: AsyncUnzlib

Asynchronous streaming Zlib decompression

Hierarchy

  • AsyncUnzlib

Index

Constructors

Properties

Methods

Constructors

constructor

+ new AsyncUnzlib(cb?: AsyncFlateStreamHandler): AsyncUnzlib

Creates an asynchronous Zlib decompression stream

Parameters:

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

Returns: AsyncUnzlib

Properties

ondata

ondata: AsyncFlateStreamHandler

The handler to call whenever data is available

Methods

push

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

Pushes a chunk to be decompressed from Zlib

Parameters:

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

Returns: void