зеркало из https://github.com/github/ruby.git
[DOC] describe methods used for src and dst argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
a2831955b2
Коммит
ae2578f6bc
7
io.c
7
io.c
|
@ -11017,7 +11017,12 @@ copy_stream_finalize(VALUE arg)
|
|||
* 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.
|
||||
*
|
||||
|
|
Загрузка…
Ссылка в новой задаче