Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/lib/rex/post/io.rb
Views: 11779
# -*- coding: binary -*-12module Rex3module Post45##6#7# Base IO class that is modeled after the ruby IO class.8#9##10class IO11protected12attr_accessor :filed, :mode13public1415##16#17# Conditionals18#19##2021def eof?22return eof23end2425def closed?26raise NotImplementedError27end2829def tty?30return isatty31end3233##34#35# I/O operations36#37##3839def binmode40raise NotImplementedError41end4243def close44raise NotImplementedError45end4647def close_read48raise NotImplementedError49end5051def close_write52raise NotImplementedError53end5455def each(sep = $/, &block)56raise NotImplementedError57end5859def each_line(sep = $/, &block)60raise NotImplementedError61end6263def each_byte(&block)64raise NotImplementedError65end6667def eof68raise NotImplementedError69end7071def fcntl(cmd, arg)72raise NotImplementedError73end7475def flush76raise NotImplementedError77end7879def fsync80raise NotImplementedError81end8283def getc84raise NotImplementedError85end8687def gets(sep = $/)88raise NotImplementedError89end9091def ioctl(cmd, arg)92raise NotImplementedError93end9495def isatty96raise NotImplementedError97end9899def lineno100raise NotImplementedError101end102103def pos104raise NotImplementedError105end106107def print108raise NotImplementedError109end110111def printf(fmt, *args)112raise NotImplementedError113end114115def putc(obj)116raise NotImplementedError117end118119def puts(obj)120raise NotImplementedError121end122123def read(length = nil, buffer = nil)124raise NotImplementedError125end126127def readchar128raise NotImplementedError129end130131def readline(sep = $/)132raise NotImplementedError133end134135def readlines(sep = $/)136raise NotImplementedError137end138139def rewind140raise NotImplementedError141end142143def seek(offset, whence = SEEK_SET)144raise NotImplementedError145end146147def stat148raise NotImplementedError149end150151def sync152raise NotImplementedError153end154155def sysread(length)156raise NotImplementedError157end158159def sysseek(offset, whence = SEEK_SET)160raise NotImplementedError161end162163def syswrite(buf)164raise NotImplementedError165end166167def tell168return pos169end170171def ungetc(val)172raise NotImplementedError173end174175def write(buf)176raise NotImplementedError177end178179end180181end; end # Post/Rex182183184