diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-21 06:45:41 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-21 06:45:41 +0000 |
commit | ae2578f6bc3f62bc4bc768be602067bd536fd3fe (patch) | |
tree | f0c29048f07dfd4de3dad4166edba6b94f386ee2 /io.c | |
parent | a2831955b26a07241c8c45ab2affdbafd4a36db2 (diff) | |
download | ruby-ae2578f6bc3f62bc4bc768be602067bd536fd3fe.tar.gz |
[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
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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. * |