Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
        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);
        }
        public static IPipelineReader CreateGZipDecompressReader(this PipelineFactory factory, IPipelineReader reader)
        {
            var inflater = new ReadableDeflateTransform(ZLibNative.GZip_DefaultWindowBits);

            return(factory.CreateReader(reader, inflater.Execute));
        }
        public static IPipelineReader DeflateDecompress(this IPipelineReader reader, PipelineFactory factory)
        {
            var inflater = new ReadableDeflateTransform(ZLibNative.Deflate_DefaultWindowBits);

            return(factory.CreateReader(reader, inflater.Execute));
        }
 public static IPipelineReader CreateGZipDecompressReader(this PipelineFactory factory, IPipelineReader reader)
 {
     var inflater = new ReadableDeflateTransform(ZLibNative.GZip_DefaultWindowBits);
     return factory.CreateReader(reader, inflater.Execute);
 }
 public static IPipelineReader DeflateDecompress(this IPipelineReader reader, PipelineFactory factory)
 {
     var inflater = new ReadableDeflateTransform(ZLibNative.Deflate_DefaultWindowBits);
     return factory.CreateReader(reader, inflater.Execute);
 }