コード例 #1
0
        public static IPipeReader DeflateDecompress(this IPipeReader reader, PipeOptions options)
        {
            var inflater = new ReadableDeflateTransform(ZLibNative.Deflate_DefaultWindowBits);
            var pipe     = new Pipe(options);
            var ignore   = inflater.Execute(reader, pipe.Writer);

            return(pipe.Reader);
        }
コード例 #2
0
        public static PipeReader CreateGZipDecompressReader(PipeOptions options, PipeReader reader)
        {
            var inflater = new ReadableDeflateTransform(ZLibNative.GZip_DefaultWindowBits);
            var pipe     = new Pipe(options);
            var ignore   = inflater.Execute(reader, pipe.Writer);

            return(pipe.Reader);
        }
コード例 #3
0
        public static IPipeReader CreateGZipDecompressReader(this PipeFactory factory, IPipeReader reader)
        {
            var inflater = new ReadableDeflateTransform(ZLibNative.GZip_DefaultWindowBits);
            var pipe     = factory.Create();
            var ignore   = inflater.Execute(reader, pipe.Writer);

            return(pipe.Reader);
        }