The IO class acts as a base class for things that would normally implement the IO interface. The methods it implements are for general operations that are common to all channels, such as read, write, and close.
Closes the channel.
# File lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb, line 41 def close self.filed.close end
Read the specified number of bytes from the channel.
# File lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb, line 23 def sysread(length = nil) self.filed.read(length) end
Writes the supplied buffer to the channel.
# File lib/rex/post/meterpreter/extensions/stdapi/fs/io.rb, line 32 def syswrite(buf) self.filed.write(buf) end
Generated with the Darkfish Rdoc Generator 2.