るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.046秒)

別のキーワード

  1. io copy_stream
  2. fileutils copy_stream
  3. _builtin copy_stream
  4. fileutils copy_file
  5. fileutils copy_entry

ライブラリ

クラス

検索結果

IO.copy_stream(src, dst, copy_length = nil) -> Integer (18121.0)

指定された src から dst へコピーします。 コピーしたバイト数を返します。

...めるオフセットを数値で指定します。

//emlist[例][ruby]{
IO.write("filetest", "abcdefghij")
IO.copy_stream("filetest", "filecopy", 2) # => 2
IO.read("filecopy") # => "ab"
IO.copy_stream("filetest", "filecopy", 3, 4) # => 3
IO.read("filecopy")...

IO.copy_stream(src, dst, copy_length, src_offset) -> Integer (18121.0)

指定された src から dst へコピーします。 コピーしたバイト数を返します。

...めるオフセットを数値で指定します。

//emlist[例][ruby]{
IO.write("filetest", "abcdefghij")
IO.copy_stream("filetest", "filecopy", 2) # => 2
IO.read("filecopy") # => "ab"
IO.copy_stream("filetest", "filecopy", 3, 4) # => 3
IO.read("filecopy")...