Scroll to navigation

SNOBOL4ZLIB(3) CSNOBOL4 Manual SNOBOL4ZLIB(3)

NAME

zlib - 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

March 31, 2022 CSNOBOL4B 2.3.1