snobol4zlib - Man Page

compression/decompression library

Synopsys

-INCLUDE 'zlib.sno'
	ZLIB_COMPRESS(string,[level])
	ZLIB_UNCOMPRESS(string,[wbits],[ibufsize])
	ZLIB_CRC32(string[,starting_value])
	ZLIB_ADLER32(string[,starting_value])

Description

The zlib module implements direct (in memory) access to zlib compression and checksum routines in the manner of the Python zlib module.

For compressed file I/O see snobol4io(1).

ZLIB_COMPRESS optional second argument is compression level, 0-9 or -1; defaults to 6.

ZLIB_UNCOMPRESS optional second argument controls (log2) window buffer size (and container format?). Optional third argument selects initial output buffer size (will be doubled as needed).

ZLIB_CRC32 optional second argument is starting value (for running CRC over multiple blocks of data), defaults to zero.

ZLIB_ADLER32 optional second argument is starting value (for running checksum over multiple blocks of data), defaults to one.

See Also

snobol4(1), snobol4io(1), gzip(1), zlib(3), http://zlib.net/

Author

Phil Budne

Referenced By

snobol4digest(3), snolib(3).

March 31, 2022 CSNOBOL4B 2.3.1 CSNOBOL4 Manual