Class AsyncInflate
Index
Constructors
constructor
- new AsyncInflate(
opts: InflateStreamOptions,
cb?: AsyncFlateStreamHandler,
): AsyncInflate Creates an asynchronous DEFLATE decompression stream
Parameters
- opts: InflateStreamOptions
The decompression options
Optional
cb: AsyncFlateStreamHandlerThe callback to call whenever data is inflated
Returns AsyncInflate
- opts: InflateStreamOptions
- new AsyncInflate(cb?: AsyncFlateStreamHandler): AsyncInflate
Creates an asynchronous DEFLATE decompression stream
Parameters
Optional
cb: AsyncFlateStreamHandlerThe callback to call whenever data is inflated
Returns AsyncInflate
Methods
push
- push(chunk: Uint8Array<ArrayBufferLike>, final?: boolean): void
Pushes a chunk to be inflated
Parameters
- chunk: Uint8Array<ArrayBufferLike>
The chunk to push
Optional
final: booleanWhether this is the last chunk
Returns void
- chunk: Uint8Array<ArrayBufferLike>
Properties
ondata
The handler to call whenever data is available
Optional
ondrain
The handler to call whenever buffered source data is processed (i.e. queuedSize
updates)
queuedSize
queuedSize: number
The number of compressed bytes buffered in the stream
terminate
A method to terminate the stream's internal worker. Subsequent calls to push() will silently fail.
Asynchronous streaming DEFLATE decompression