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 outstream
Stream to write to
STRING format
Format of compressed data
- "GZIP": Add GZIP headers and calculate CRC32
- "RAW": Output raw data
- "ZIP": Output raw data and calculate CRC32
INTEGER compressionlevel
Compression level (1-9)
Return value
INTEGER
Id of the stream the uncompressed data can be printed to