File: C:/Ruby27-x64/share/ri/2.7.0/system/Zlib/Inflate/new-c.ri
U:RDoc::AnyMethod[iI"new:ETI"Zlib::Inflate::new;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"MCreates a new inflate stream for decompression. +window_bits+ sets the ;TI"Bsize of the history buffer and can have the following values:;To:RDoc::Markup::BlankLine o:RDoc::Markup::List:
@type: NOTE:@items[ o:RDoc::Markup::ListItem:@label[I"0;T; [o;
; [I"MHave inflate use the window size from the zlib header of the compressed ;TI"stream.;T@o;;[I"(8..15);T; [o;
; [I"OOverrides the window size of the inflate header in the compressed stream. ;TI"MThe window size must be greater than or equal to the window size of the ;TI"compressed stream.;T@o;;[I"Greater than 15;T; [o;
; [I"KAdd 32 to window_bits to enable zlib and gzip decoding with automatic ;TI"Cheader detection, or add 16 to decode only the gzip format (a ;TI";Zlib::DataError will be raised for a non-gzip stream).;T@o;;[I"(-8..-15);T; [ o;
; [I"NEnables raw deflate mode which will not generate a check value, and will ;TI"Knot look for any check values for comparison at the end of the stream.;T@o;
; [I"MThis is for use with other formats that use the deflate compressed data ;TI"=format such as zip which provide their own check values.;T@S:RDoc::Markup::Heading:
leveli: textI"Example;T@o:RDoc::Markup::Verbatim; [I"/open "compressed.file" do |compressed_io|
;TI"4 zi = Zlib::Inflate.new(Zlib::MAX_WBITS + 32)
;TI"
;TI"
begin
;TI"= open "uncompressed.file", "w+" do |uncompressed_io|
;TI"= uncompressed_io << zi.inflate(compressed_io.read)
;TI"
end
;TI" ensure
;TI" zi.close
;TI" end
;TI"end;T:@format0:
@fileI"ext/zlib/zlib.c;T:0@omit_headings_from_table_of_contents_below0I"6Zlib::Inflate.new(window_bits = Zlib::MAX_WBITS)
;T0[ I"(p1 = v1);T@GFI"Inflate;TcRDoc::NormalClass00