Interface UnzipDecoder
interface UnzipDecoder {
ondata: AsyncFlateStreamHandler;
terminate?: AsyncTerminable;
push(chunk: Uint8Array, final: boolean): void;
}
ondata: AsyncFlateStreamHandler;
terminate?: AsyncTerminable;
push(chunk: Uint8Array, final: boolean): void;
}
Implemented by
Methods
push
-
Pushes a chunk to be decompressed
Parameters
- chunk: Uint8Array
The data in this chunk. Do not consume (detach) this buffer.
- final: boolean
Whether this is the last chunk in the data stream
Returns void
- chunk: Uint8Array
A decoder for files in ZIP streams