IO.copy_stream(src, dst)
IO.copy_stream(src, dst, copy_length)
IO.copy_stream(src, dst, copy_length, src_offset)
IO.copy_stream(src, dst, copy_length)
IO.copy_stream(src, dst, copy_length, src_offset)
Class Public methods
::copy_stream copies src to dst. src and dst is either a filename or an IO.
This method returns the number of bytes copied.
If optional arguments are not given, the start position of the copy is the beginning of the filename or the current file offset of the IO. The end position of the copy is the end of file.
If copy_length is given, No more than copy_length bytes are copied.
If src_offset is given, it specifies the start position of the copy.
When src_offset is specified and src is an IO, ::copy_stream doesn't move the current file offset.
Please login to continue.