ruby-changes:48119
From: akr <ko1@a...>
Date: Sat, 21 Oct 2017 15:45:46 +0900 (JST)
Subject: [ruby-changes:48119] akr:r60233 (trunk): [DOC] describe methods used for src and dst argument.
akr 2017-10-21 15:45:41 +0900 (Sat, 21 Oct 2017) New Revision: 60233 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60233 Log: [DOC] describe methods used for src and dst argument. Modified files: trunk/io.c Index: io.c =================================================================== --- io.c (revision 60232) +++ io.c (revision 60233) @@ -11017,7 +11017,12 @@ copy_stream_finalize(VALUE arg) https://github.com/ruby/ruby/blob/trunk/io.c#L11017 * IO.copy_stream(src, dst, copy_length, src_offset) * * IO.copy_stream copies <i>src</i> to <i>dst</i>. - * <i>src</i> and <i>dst</i> is either a filename or an IO. + * <i>src</i> and <i>dst</i> is either a filename or an IO-like object. + * IO-like object for <i>src</i> should have <code>readpartial</code> or + * <code>read</code> method. + * IO-like object for <i>dst</i> should have <code>write</code> method. + * (Specialized mechanisms, such as sendfile system call, may be used + * on appropriate situation.) * * This method returns the number of bytes copied. * -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/