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

EndDeflate() public method

End a deflation session.
Call this after making a series of one or more calls to Deflate(). All buffers are flushed.
public EndDeflate ( ) : int
return int
        public int EndDeflate()
        {
            if (dstate == null)
                throw new ZlibException("No Deflate State!");
            // TODO: dinoch Tue, 03 Nov 2009  15:39 (test this)
            //int ret = dstate.End();
            dstate = null;
            return ZlibConstants.Z_OK; //ret;
        }

Usage Example

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