Ejemplo n.º 1
0
        public ZlibTransform(CompressionMode mode)
        {
            this.Mode = mode;
            switch (mode)
            {
            case CompressionMode.Decompress:
                ZLibNative.CreateZLibStreamForInflate(out handle, -15);
                break;

            case CompressionMode.Compress:
                ZLibNative.CreateZLibStreamForDeflate(out handle);
                break;
            }
        }
Ejemplo n.º 2
0
 public static ZLibNative.ErrorCode CreateZLibStreamForInflate(out ZLibNative.ZLibStreamHandle zLibStreamHandle)
 {
     return(ZLibNative.CreateZLibStreamForInflate(out zLibStreamHandle, -15));
 }