ComponentAce.Compression.Libs.ZLib.ZStream.deflateInit C# (CSharp) 메소드

deflateInit() 공개 메소드

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.
리턴 int
		public int deflateInit(int level)
		{
			return deflateInit(level, ZLibUtil.MAX_WBITS);
		}

Same methods

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

Usage Example

예제 #1
0
파일: zlib.cs 프로젝트: david50407/main
            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