⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
Zlib
/
GzipWriter
/
Edit File: cdesc-GzipWriter.ri
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
Simpan