SharpGIS.ZLib.ZlibCodec.EndInflate C# (CSharp) 메소드

EndInflate() 공개 메소드

Ends an inflation session.
Call this after successively calling Inflate(). This will cause all buffers to be flushed. After calling this you cannot call Inflate() without a intervening call to one of the InitializeInflate() overloads.
public EndInflate ( ) : int
리턴 int
        public int EndInflate()
        {
            if (istate == null)
                throw new ZlibException("No Inflate State!");
            int ret = istate.End();
            istate = null;
            return ret;
        }

Usage Example

예제 #1
0
 private void end()
 {
     if (z == null)
     {
         return;
     }
     //if (_wantCompress)
     //{
     //    _z.EndDeflate();
     //}
     //else
     {
         _z.EndInflate();
     }
     _z = null;
 }