inflate.md 1.1 KB

Class: Inflate

Streaming DEFLATE decompression

Hierarchy

  • Inflate

Index

Constructors

Properties

Methods

Constructors

constructor

+ new Inflate(cb?: FlateStreamHandler): Inflate

Creates an inflation stream

Parameters:

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

Returns: Inflate

Properties

ondata

ondata: FlateStreamHandler

The handler to call whenever data is available

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 final chunk

Returns: void