| Server IP : 162.214.74.102 / Your IP : 216.73.217.46 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/Zlib/GzipWriter/ |
Upload File : |
U:RDoc::NormalClass[iI"GzipWriter:ETI"Zlib::GzipWriter;TI"Zlib::GzipFile;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"OZlib::GzipWriter is a class for writing gzipped files. GzipWriter should ;TI"8be used with an instance of IO, or IO-like, object.;To:RDoc::Markup::BlankLine o; ;[I"4Following two example generate the same result.;T@o:RDoc::Markup::Verbatim;[I".Zlib::GzipWriter.open('hoge.gz') do |gz|
;TI"5 gz.write 'jugemu jugemu gokou no surikire...'
;TI" end
;TI"
;TI"&File.open('hoge.gz', 'w') do |f|
;TI"$ gz = Zlib::GzipWriter.new(f)
;TI"5 gz.write 'jugemu jugemu gokou no surikire...'
;TI" gz.close
;TI" end
;T:@format0o; ;[I".To make like gzip(1) does, run following:;T@o;;[I"orig = 'hoge.txt'
;TI".Zlib::GzipWriter.open('hoge.gz') do |gz|
;TI"# gz.mtime = File.mtime(orig)
;TI" gz.orig_name = orig
;TI"! gz.write IO.binread(orig)
;TI" end
;T;0o; ;[ I"PNOTE: Due to the limitation of Ruby's finalizer, you must explicitly close ;TI"NGzipWriter objects by Zlib::GzipWriter#close etc. Otherwise, GzipWriter ;TI"Owill be not able to write the gzip footer and will generate a broken gzip ;TI"
file.;T:
@fileI"ext/zlib/zlib.c;T:0@omit_headings_from_table_of_contents_below0;
0;0[ [ [ [[I"
class;T[[:public[[I"new;TI"ext/zlib/zlib.c;T[I" open;T@>[:protected[ [:private[ [I"
instance;T[[;[[I"<<;T@>[I"
comment=;T@>[I"
flush;T@>[I"mtime=;T@>[I"orig_name=;T@>[I"pos;T@>[I"
print;T@>[I"printf;T@>[I" putc;T@>[I" puts;T@>[I" tell;T@>[I"
write;T@>[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ;
0;0[@2I" Zlib;TcRDoc::NormalModule