public int deflateInit(int level) { return deflateInit(level, ZLibUtil.MAX_WBITS); }
private static zlib.ZStream CreateDeflateStream(int level, int windowBits, int memLevel, int strategy) { var stream = new zlib.ZStream(); int result = stream.deflateInit(level, windowBits, memLevel, (zlib.CompressionStrategy)strategy); if (result != Z_OK) { throw MakeError(result, null); } return(stream); }