CreateZlibCompressor (open)
Create a zlib compressor (using deflate)
Syntax
LOADLIB "wh::filetypes/archiving.whlib";
INTEGER FUNCTION CreateZlibCompressor(INTEGER outstream, STRING format, INTEGER compressionlevel)Parameters
INTEGER outstreamStream to write to
STRING formatFormat of compressed data
- "GZIP": Add GZIP headers and calculate CRC32
- "RAW": Output raw data
- "ZIP": Output raw data and calculate CRC32
INTEGER compressionlevelCompression level (1-9)
Return value
INTEGERId of the stream the uncompressed data can be printed to