C# Class IronRuby.Builtins.RubyIO

IO builtin class. Wraps a BCL Stream object. Implementation of Ruby methods is in IoOps.cs in IronRuby.Libraries assembly.
Inheritance: IDisposable
显示文件 Open project: jschementi/iron Class Usage Examples

Public Methods

Method Description
AppendBytes ( MutableString buffer, int count ) : int
Close ( ) : void
CloseReader ( ) : void
CloseWriter ( ) : void
CreateErrorWaitHandle ( ) : WaitHandle
CreateReadWaitHandle ( ) : WaitHandle
CreateWriteWaitHandle ( ) : WaitHandle
Dispose ( ) : void
FileControl ( int commandId, byte arg ) : int
FileControl ( int commandId, int arg ) : int
Flush ( ) : void
GetBinaryReader ( ) : BinaryReader
GetBinaryWriter ( ) : BinaryWriter
GetFileDescriptor ( ) : int
GetReadableStream ( ) : RubyBufferedStream
GetSeekPosition ( long length, long position, long seekOffset, SeekOrigin origin ) : long
GetStream ( ) : RubyBufferedStream
GetWritableStream ( ) : RubyBufferedStream
IsConsoleDescriptor ( ) : bool
IsEndOfStream ( ) : bool
NonBlockingOperation ( Action operation, bool isRead ) : void
PeekByteNormalizeEoln ( ) : int
PushBack ( byte b ) : void
ReadByteNormalizeEoln ( ) : int
ReadLineOrParagraph ( MutableString separator, int limit ) : MutableString
RequireInitialized ( ) : void
RequireOpen ( ) : void
RequireReadable ( ) : void
RequireWritable ( ) : void
Reset ( Stream stream, IOMode mode ) : void
RubyIO ( RubyContext context ) : System
RubyIO ( RubyContext context, Stream stream, IOMode mode ) : System
RubyIO ( RubyContext context, Stream stream, int descriptor, IOMode mode ) : System
RubyIO ( RubyContext context, StreamReader reader, StreamWriter writer, IOMode mode ) : System
Seek ( long offset, SeekOrigin origin ) : void
SetFileDescriptor ( int value ) : void
SetReadTimeout ( int timeout ) : int
SetStream ( Stream stream ) : void
ToSeekOrigin ( int rubySeekOrigin ) : SeekOrigin
ToString ( ) : string
WriteBytes ( MutableString buffer, int index, int count ) : int
WriteBytes ( byte buffer, int index, int count ) : int
WriteBytes ( char buffer, int index, int count ) : int
WriteBytes ( string value ) : int

Private Methods

Method Description
IsConsoleDescriptor ( int fileDescriptor ) : bool
WriteBytes ( byte bytes, MutableString str, int index, int count ) : int

Method Details

AppendBytes() public method

public AppendBytes ( MutableString buffer, int count ) : int
buffer MutableString
count int
return int

Close() public method

public Close ( ) : void
return void

CloseReader() public method

public CloseReader ( ) : void
return void

CloseWriter() public method

public CloseWriter ( ) : void
return void

CreateErrorWaitHandle() public method

public CreateErrorWaitHandle ( ) : WaitHandle
return WaitHandle

CreateReadWaitHandle() public method

public CreateReadWaitHandle ( ) : WaitHandle
return WaitHandle

CreateWriteWaitHandle() public method

public CreateWriteWaitHandle ( ) : WaitHandle
return WaitHandle

Dispose() public method

public Dispose ( ) : void
return void

FileControl() public method

public FileControl ( int commandId, byte arg ) : int
commandId int
arg byte
return int

FileControl() public method

public FileControl ( int commandId, int arg ) : int
commandId int
arg int
return int

Flush() public method

public Flush ( ) : void
return void

GetBinaryReader() public method

public GetBinaryReader ( ) : BinaryReader
return BinaryReader

GetBinaryWriter() public method

public GetBinaryWriter ( ) : BinaryWriter
return BinaryWriter

GetFileDescriptor() public method

public GetFileDescriptor ( ) : int
return int

GetReadableStream() public method

public GetReadableStream ( ) : RubyBufferedStream
return RubyBufferedStream

GetSeekPosition() public static method

public static GetSeekPosition ( long length, long position, long seekOffset, SeekOrigin origin ) : long
length long
position long
seekOffset long
origin SeekOrigin
return long

GetStream() public method

public GetStream ( ) : RubyBufferedStream
return RubyBufferedStream

GetWritableStream() public method

public GetWritableStream ( ) : RubyBufferedStream
return RubyBufferedStream

IsConsoleDescriptor() public method

public IsConsoleDescriptor ( ) : bool
return bool

IsEndOfStream() public method

public IsEndOfStream ( ) : bool
return bool

NonBlockingOperation() public method

public NonBlockingOperation ( Action operation, bool isRead ) : void
operation Action
isRead bool
return void

PeekByteNormalizeEoln() public method

public PeekByteNormalizeEoln ( ) : int
return int

PushBack() public method

public PushBack ( byte b ) : void
b byte
return void

ReadByteNormalizeEoln() public method

public ReadByteNormalizeEoln ( ) : int
return int

ReadLineOrParagraph() public method

public ReadLineOrParagraph ( MutableString separator, int limit ) : MutableString
separator MutableString
limit int
return MutableString

RequireInitialized() public method

public RequireInitialized ( ) : void
return void

RequireOpen() public method

public RequireOpen ( ) : void
return void

RequireReadable() public method

public RequireReadable ( ) : void
return void

RequireWritable() public method

public RequireWritable ( ) : void
return void

Reset() public method

public Reset ( Stream stream, IOMode mode ) : void
stream Stream
mode IOMode
return void

RubyIO() public method

public RubyIO ( RubyContext context ) : System
context RubyContext
return System

RubyIO() public method

public RubyIO ( RubyContext context, Stream stream, IOMode mode ) : System
context RubyContext
stream Stream
mode IOMode
return System

RubyIO() public method

public RubyIO ( RubyContext context, Stream stream, int descriptor, IOMode mode ) : System
context RubyContext
stream Stream
descriptor int
mode IOMode
return System

RubyIO() public method

public RubyIO ( RubyContext context, StreamReader reader, StreamWriter writer, IOMode mode ) : System
context RubyContext
reader StreamReader
writer StreamWriter
mode IOMode
return System

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : void
offset long
origin SeekOrigin
return void

SetFileDescriptor() public method

public SetFileDescriptor ( int value ) : void
value int
return void

SetReadTimeout() public method

public SetReadTimeout ( int timeout ) : int
timeout int
return int

SetStream() public method

public SetStream ( Stream stream ) : void
stream Stream
return void

ToSeekOrigin() public static method

public static ToSeekOrigin ( int rubySeekOrigin ) : SeekOrigin
rubySeekOrigin int
return SeekOrigin

ToString() public method

public ToString ( ) : string
return string

WriteBytes() public method

public WriteBytes ( MutableString buffer, int index, int count ) : int
buffer MutableString
index int
count int
return int

WriteBytes() public method

public WriteBytes ( byte buffer, int index, int count ) : int
buffer byte
index int
count int
return int

WriteBytes() public method

public WriteBytes ( char buffer, int index, int count ) : int
buffer char
index int
count int
return int

WriteBytes() public method

public WriteBytes ( string value ) : int
value string
return int