Cimbalino.Phone.Toolkit.Compression.ZlibCodec.EndInflate C# (CSharp) Method

EndInflate() public method

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
return int
        public int EndInflate()
        {
            if (istate == null)
                throw new ZlibException("No Inflate State!");
            int ret = istate.End();
            istate = null;
            return ret;
        }

Usage Example

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