Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
IO
/
//opt/alt/ruby27/share/ri/system/IO/copy_stream-c.ri
U:RDoc::AnyMethod[iI"copy_stream:ETI"IO::copy_stream;TT:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"5IO.copy_stream copies <i>src</i> to <i>dst</i>. ;TI"J<i>src</i> and <i>dst</i> is either a filename or an IO-like object. ;TI"EIO-like object for <i>src</i> should have #readpartial or #read ;TI"Gmethod. IO-like object for <i>dst</i> should have #write method. ;TI"H(Specialized mechanisms, such as sendfile system call, may be used ;TI"on appropriate situation.);To:RDoc::Markup::BlankLine o; ; [I"4This method returns the number of bytes copied.;T@o; ; [ I"*If optional arguments are not given, ;TI"'the start position of the copy is ;TI"&the beginning of the filename or ;TI"(the current file offset of the IO. ;TI"5The end position of the copy is the end of file.;T@o; ; [I"%If <i>copy_length</i> is given, ;TI"6No more than <i>copy_length</i> bytes are copied.;T@o; ; [I"$If <i>src_offset</i> is given, ;TI"1it specifies the start position of the copy.;T@o; ; [I"-When <i>src_offset</i> is specified and ;TI"<i>src</i> is an IO, ;TI"9IO.copy_stream doesn't move the current file offset.;T: @fileI" io.c;T:0@omit_headings_from_table_of_contents_below0I"vIO.copy_stream(src, dst) IO.copy_stream(src, dst, copy_length) IO.copy_stream(src, dst, copy_length, src_offset) ;T0[ I"(p1, p2, p3 = v3, p4 = v4);T@+FI"IO;TcRDoc::NormalClass00