mz_deflateInit function
- @Native<Int Function(mz_streamp, Int)>(mz_streamp, ffi.Int)>()
- mz_streamp pStream,
- int level
mz_deflateInit() initializes a compressor with default options: /
/ Parameters: /
/ pStream must point to an initialized mz_stream struct. /
/ level must be between MZ_NO_COMPRESSION, MZ_BEST_COMPRESSION. /
/ level 1 enables a specially optimized compression function that's been optimized purely for performance, not ratio. /
/ (This special func. is currently only enabled when MINIZ_USE_UNALIGNED_LOADS_AND_STORES and MINIZ_LITTLE_ENDIAN are defined.) /
/ Return values: /
/ MZ_OK on success. /
/ MZ_STREAM_ERROR if the stream is bogus. /
/ MZ_PARAM_ERROR if the input parameters are bogus. /
/ MZ_MEM_ERROR on out of memory.
Implementation
@ffi.Native<ffi.Int Function(mz_streamp, ffi.Int)>()
external int mz_deflateInit(mz_streamp pStream, int level);