22件ヒット
[1-22件を表示]
(0.308秒)
検索結果
先頭2件
-
IO
. copy _ stream(src , dst , copy _ length = nil) -> Integer (26114.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") # => "e... -
IO
. copy _ stream(src , dst , copy _ length , src _ offset) -> Integer (26114.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") # => "e...