C# Class IronRuby.Builtins.RubyIOOps

Show file Open project: IronLanguages/main Class Usage Examples

Public Methods

Method Description
CreateIOWrapper ( RespondToStorage respondToStorage, object io, FileAccess access ) : IOWrapper
CreateIOWrapper ( RespondToStorage respondToStorage, object io, FileAccess access, int bufferSize ) : IOWrapper
NonBlockingError ( RubyContext context, Exception exception, bool isRead ) : Exception
OpenPipe ( RubyContext context, MutableString command, IOMode mode ) : RubyIO

Private Methods

Method Description
Binmode ( RubyIO self ) : RubyIO
Binread ( RubyClass self, [ path, [ length, [ offset ) : MutableString
Close ( RubyIO self ) : void
CloseReader ( RubyIO self ) : void
CloseWriter ( RubyIO self ) : void
Closed ( RubyIO self ) : bool
CopyStream ( ConversionStorage toPath, ConversionStorage toInt, RespondToStorage respondTo, BinaryOpStorage writeStorage, CallSiteStorage readStorage, RubyClass self, object src, object dst, [ count, [ src_offset ) : object
CreateFile ( ConversionStorage toInt, object>.ConversionStorage toHash, ConversionStorage toStr, RubyClass self, object descriptor, [ optionsOrMode, [ options ) : RubyIO
Each ( RubyContext context, BlockParam block, RubyIO self ) : object
Each ( RubyContext context, BlockParam block, RubyIO self, Microsoft.Scripting.Runtime.DynamicNull separator ) : object
Each ( RubyContext context, BlockParam block, RubyIO self, [ separator, [ limit ) : object
Each ( RubyContext context, BlockParam block, RubyIO self, int>.[ separatorOrLimit ) : object
EachByte ( BlockParam block, RubyIO self ) : object
Eof ( RubyIO self ) : bool
FileControl ( RubyIO self, [ commandId, [ arg ) : int
FileControl ( RubyIO self, [ commandId, int arg ) : int
FileNo ( RubyIO self ) : int
Flush ( RubyIO self ) : void
ForEach ( BlockParam block, RubyClass self, [ path, [ limit ) : void
ForEach ( BlockParam block, RubyClass self, [ path, [ separator, [ limit ) : void
ForFileDescriptor ( ) : RuleGenerator
GetDescriptorStream ( RubyContext context, int descriptor ) : Stream
GetExternalEncoding ( RubyIO self ) : IronRuby.Builtins.RubyEncoding
GetFileType ( IntPtr hFile ) : int
GetInternalEncoding ( RubyIO self ) : IronRuby.Builtins.RubyEncoding
GetLineNumber ( RubyIO self ) : int
GetStdHandle ( int nStdHandle ) : IntPtr
GetStdHandleFd ( ConsoleStreamType streamType ) : int
GetWaitHandles ( RubyContext context, RubyArray read, RubyArray write, RubyArray error ) : System.Threading.WaitHandle[]
Getc ( RubyIO self ) : object
Gets ( IronRuby.Runtime.RubyScope scope, RubyIO self ) : MutableString
Gets ( IronRuby.Runtime.RubyScope scope, RubyIO self, Microsoft.Scripting.Runtime.DynamicNull separator ) : MutableString
Gets ( IronRuby.Runtime.RubyScope scope, RubyIO self, [ separator, [ limit ) : MutableString
Gets ( IronRuby.Runtime.RubyScope scope, RubyIO self, int>.[ separatorOrLimit ) : MutableString
InitializeCopy ( RubyIO self, [ source ) : RubyIO
Inspect ( RubyIO self ) : MutableString
InvokeOpenBlock ( UnaryOpStorage closeStorage, BlockParam block, object obj ) : object
IsAtty ( RubyIO self ) : bool
MakeResult ( WaitHandle handles, int &handleIndex, int signaling, RubyArray ioObjects ) : RubyArray
Open ( ) : RuleGenerator
OpenPipe ( RubyClass self ) : RubyArray
OpenPipe ( RubyContext context, RubyClass self, [ command, [ modeString ) : RubyIO
OpenPipe ( RubyContext context, BlockParam block, RubyClass self, [ command, [ modeString ) : object
Pid ( RubyIO self ) : object
Pos ( RubyIO self ) : object
Pos ( RubyIO self, [ pos ) : void
PrepareReadBuffer ( RubyIO io, MutableString buffer ) : MutableString
Read ( object>.ConversionStorage toHash, ConversionStorage fixnumCast, ConversionStorage toPath, RubyClass self, object path, [ optionsOrLength, [ optionsOrOffset, [ options ) : MutableString
Read ( RubyIO self ) : MutableString
Read ( RubyIO self, Microsoft.Scripting.Runtime.DynamicNull bytes, [ buffer ) : MutableString
Read ( RubyIO self, [ bytes, [ buffer ) : MutableString
ReadChar ( RubyIO self ) : int
ReadLine ( IronRuby.Runtime.RubyScope scope, RubyIO self ) : MutableString
ReadLine ( IronRuby.Runtime.RubyScope scope, RubyIO self, Microsoft.Scripting.Runtime.DynamicNull separator ) : MutableString
ReadLine ( IronRuby.Runtime.RubyScope scope, RubyIO self, [ separator, [ limit ) : MutableString
ReadLine ( IronRuby.Runtime.RubyScope scope, RubyIO self, int>.[ separatorOrLimit ) : MutableString
ReadLines ( RubyClass self, [ path, [ limit ) : RubyArray
ReadLines ( RubyClass self, [ path, [ separator, [ limit ) : RubyArray
ReadLines ( RubyContext context, RubyIO self ) : RubyArray
ReadLines ( RubyContext context, RubyIO self, Microsoft.Scripting.Runtime.DynamicNull separator ) : RubyArray
ReadLines ( RubyContext context, RubyIO self, [ separator, [ limit ) : RubyArray
ReadLines ( RubyContext context, RubyIO self, int>.[ separatorOrLimit ) : RubyArray
ReadNoBlock ( RubyIO self, [ bytes, [ buffer ) : MutableString
ReadPartial ( RubyIO self, [ bytes, [ buffer ) : MutableString
Reinitialize ( ConversionStorage toInt, object>.ConversionStorage toHash, ConversionStorage toStr, RubyIO self, object descriptor, [ optionsOrMode, [ options ) : RubyIO
Reinitialize ( RubyIO io, int descriptor, IronRuby.Builtins.IOInfo info ) : RubyIO
Reopen ( ConversionStorage toPath, RubyIO io, object pathObj, IronRuby.Builtins.IOInfo info ) : RubyIO
Reopen ( ConversionStorage toPath, RubyIO self, object path, [ mode ) : RubyIO
Reopen ( ConversionStorage toPath, RubyIO self, object path, int mode ) : RubyIO
Reopen ( RubyIO self, [ source ) : RubyIO
Rewind ( RubyContext context, RubyIO self ) : void
Seek ( RubyIO self, [ pos, [ seekOrigin ) : int
Select ( RubyContext context, object self, RubyArray read, RubyArray write, RubyArray error, double timeoutInSeconds ) : RubyArray
Select ( RubyContext context, object self, RubyArray read, RubyArray write, RubyArray error, int timeoutInSeconds ) : RubyArray
Select ( RubyContext context, object self, RubyArray read, [ write, [ error ) : RubyArray
SelectInternal ( RubyContext context, RubyArray read, RubyArray write, RubyArray error, System.TimeSpan timeout ) : RubyArray
SetEncodings ( object>.ConversionStorage toHash, ConversionStorage toStr, RubyIO self, object external, [ @internal, object>.[ options ) : RubyIO
SetEncodings ( RubyIO self, IronRuby.Builtins.RubyEncoding external, [ @internal ) : RubyIO
SetLineNumber ( RubyContext context, RubyIO self, [ value ) : void
SetPreviousByte ( RubyIO self, [ b ) : void
Sync ( RubyIO self ) : bool
Sync ( RubyIO self, bool sync ) : bool
SysOpen ( RubyClass self, [ path, [ mode, [ perm ) : int
SysSeek ( RubyIO self, [ pos, [ seekOrigin ) : object
SysWrite ( BinaryOpStorage writeStorage, ConversionStorage tosConversion, RubyContext context, RubyIO self, [ val ) : int
SysWrite ( BinaryOpStorage writeStorage, ConversionStorage tosConversion, RubyContext context, RubyIO self, object obj ) : int
SystemRead ( RubyIO self, [ bytes, [ buffer ) : MutableString
ToIO ( RubyIO self ) : RubyIO
ToIo ( RubyContext context, object obj ) : RubyIO
TryInvokeOpenBlock ( RubyContext context, BlockParam block, IDisposable io ) : object
Write ( ConversionStorage tosConversion, RubyIO self, object obj ) : int
Write ( RubyIO self, [ val ) : int
WriteNoBlock ( ConversionStorage tosConversion, RubyIO self, object obj ) : int
WriteNoBlock ( RubyIO self, [ val ) : int
isatty ( int desc ) : int

Method Details

CreateIOWrapper() public static method

public static CreateIOWrapper ( RespondToStorage respondToStorage, object io, FileAccess access ) : IOWrapper
respondToStorage RespondToStorage
io object
access FileAccess
return IronRuby.Runtime.IOWrapper

CreateIOWrapper() public static method

public static CreateIOWrapper ( RespondToStorage respondToStorage, object io, FileAccess access, int bufferSize ) : IOWrapper
respondToStorage RespondToStorage
io object
access FileAccess
bufferSize int
return IronRuby.Runtime.IOWrapper

NonBlockingError() public static method

public static NonBlockingError ( RubyContext context, Exception exception, bool isRead ) : Exception
context RubyContext
exception System.Exception
isRead bool
return System.Exception

OpenPipe() public static method

public static OpenPipe ( RubyContext context, MutableString command, IOMode mode ) : RubyIO
context RubyContext
command MutableString
mode IOMode
return RubyIO