deflateInit2_
fn
int deflateInit2_(z_stream * strm, int level, int method, int windowBits, int memLevel, int strategy,
const(char) * ver, int streamSize) nothrowInitialize a deflate stream with full parameters.
This is the main initialization function that supports all zlib options.
Parameters
strm | Pointer to z_stream to initialize. |
level | Compression level (0-9 or Z_DEFAULT_COMPRESSION). |
method | Compression method (must be Z_DEFLATED). |
windowBits | Log2 of window size. Negative for raw deflate, +16 for gzip. |
memLevel | Memory usage level (1-9). |
strategy | Compression strategy. |
ver | zlib version string (for compatibility, ignored). |
streamSize | Size of z_stream structure (for compatibility). |
Returns
Z_OK on success, or an error code.