ComponentAce.Compression.Libs.ZLib.ZStream.deflateInit C# (CSharp) Method

deflateInit() public method

Initializes the internal stream state for compression.
public deflateInit ( int level ) : int
level int An integer value from 0 to 9 indicating the desired compression level.
return int
		public int deflateInit(int level)
		{
			return deflateInit(level, ZLibUtil.MAX_WBITS);
		}

Same methods

ZStream::deflateInit ( int level, int bits ) : int

Usage Example

Beispiel #1
0
            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);
            }
All Usage Examples Of ComponentAce.Compression.Libs.ZLib.ZStream::deflateInit