Inflate
Generic JS-style wrapper for zlib calls. If you don't need streaming behaviour - use more simple functions: inflate and inflateRaw.
Properties
Link copied to clipboard
Error code after inflate finished. ReturnCode.Z_OK on success. Should be checked if broken data possible.
Link copied to clipboard
Uncompressed result, generated by default onData and onEnd handlers. Filled after you push last chunk (call push with Flush.Z_FINISH param).
Functions
Link copied to clipboard
By default, stores data blocks in chunks[] property and glue those in onEnd. Override this handler, if you need another behaviour.
Link copied to clipboard
Called either after you tell inflate that the input stream is complete Flush.Z_FINISH. By default - join collected chunks, free memory and fill results / err properties.
Link copied to clipboard