# File lib/ffi/io.rb, line 31 31: def self.for_fd(fd, mode = "r") 32: ::IO.for_fd(fd, mode) 33: end
A version of IO#read that reads into a native buffer
This will be optimized at some future time to eliminate the double copy
# File lib/ffi/io.rb, line 40 40: def self.native_read(io, buf, len) 41: tmp = io.read(len) 42: return 1 unless tmp 43: buf.put_bytes(0, tmp) 44: tmp.length 45: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.