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); }
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); }