ZipPassThrough
A pass-through stream to keep data uncompressed in a ZIP archive.
class ZipPassThrough implements ZipInputFile { }
constructor(filename: string);
private c;
attrs?: number;
comment?: string;
compression: number;
crc: number;
extra?: Record<number, Uint8Array>;
filename: string;
mtime?: GzipOptions["mtime"];
ondata: AsyncFlateStreamHandler;
os?: number;
size: number;
protected process(chunk: Uint8Array, final: boolean): void;
push(chunk: Uint8Array, final?: boolean): void;
§Implements
§Constructors
§Properties
§
mtime: GzipOptions["mtime"]
[src]§
ondata: AsyncFlateStreamHandler
[src]§Methods
§
process(chunk: Uint8Array, final: boolean): void protected
[src]Processes a chunk and pushes to the output stream. You can override this method in a subclass for custom behavior, but by default this passes the data through. You must call this.ondata(err, chunk, final) at some point in this method.
@param chunk
The chunk to process
@param final
Whether this is the last chunk