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
Afficher le fichier Open project: jschementi/iron Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

AppendBytes() public méthode

public AppendBytes ( MutableString buffer, int count ) : int
buffer MutableString
count int
Résultat int

Close() public méthode

public Close ( ) : void
Résultat void

CloseReader() public méthode

public CloseReader ( ) : void
Résultat void

CloseWriter() public méthode

public CloseWriter ( ) : void
Résultat void

CreateErrorWaitHandle() public méthode

public CreateErrorWaitHandle ( ) : WaitHandle
Résultat WaitHandle

CreateReadWaitHandle() public méthode

public CreateReadWaitHandle ( ) : WaitHandle
Résultat WaitHandle

CreateWriteWaitHandle() public méthode

public CreateWriteWaitHandle ( ) : WaitHandle
Résultat WaitHandle

Dispose() public méthode

public Dispose ( ) : void
Résultat void

FileControl() public méthode

public FileControl ( int commandId, byte arg ) : int
commandId int
arg byte
Résultat int

FileControl() public méthode

public FileControl ( int commandId, int arg ) : int
commandId int
arg int
Résultat int

Flush() public méthode

public Flush ( ) : void
Résultat void

GetBinaryReader() public méthode

public GetBinaryReader ( ) : BinaryReader
Résultat BinaryReader

GetBinaryWriter() public méthode

public GetBinaryWriter ( ) : BinaryWriter
Résultat BinaryWriter

GetFileDescriptor() public méthode

public GetFileDescriptor ( ) : int
Résultat int

GetReadableStream() public méthode

public GetReadableStream ( ) : RubyBufferedStream
Résultat RubyBufferedStream

GetSeekPosition() public static méthode

public static GetSeekPosition ( long length, long position, long seekOffset, SeekOrigin origin ) : long
length long
position long
seekOffset long
origin SeekOrigin
Résultat long

GetStream() public méthode

public GetStream ( ) : RubyBufferedStream
Résultat RubyBufferedStream

GetWritableStream() public méthode

public GetWritableStream ( ) : RubyBufferedStream
Résultat RubyBufferedStream

IsConsoleDescriptor() public méthode

public IsConsoleDescriptor ( ) : bool
Résultat bool

IsEndOfStream() public méthode

public IsEndOfStream ( ) : bool
Résultat bool

NonBlockingOperation() public méthode

public NonBlockingOperation ( Action operation, bool isRead ) : void
operation Action
isRead bool
Résultat void

PeekByteNormalizeEoln() public méthode

public PeekByteNormalizeEoln ( ) : int
Résultat int

PushBack() public méthode

public PushBack ( byte b ) : void
b byte
Résultat void

ReadByteNormalizeEoln() public méthode

public ReadByteNormalizeEoln ( ) : int
Résultat int

ReadLineOrParagraph() public méthode

public ReadLineOrParagraph ( MutableString separator, int limit ) : MutableString
separator MutableString
limit int
Résultat MutableString

RequireInitialized() public méthode

public RequireInitialized ( ) : void
Résultat void

RequireOpen() public méthode

public RequireOpen ( ) : void
Résultat void

RequireReadable() public méthode

public RequireReadable ( ) : void
Résultat void

RequireWritable() public méthode

public RequireWritable ( ) : void
Résultat void

Reset() public méthode

public Reset ( Stream stream, IOMode mode ) : void
stream Stream
mode IOMode
Résultat void

RubyIO() public méthode

public RubyIO ( RubyContext context ) : System
context RubyContext
Résultat System

RubyIO() public méthode

public RubyIO ( RubyContext context, Stream stream, IOMode mode ) : System
context RubyContext
stream Stream
mode IOMode
Résultat System

RubyIO() public méthode

public RubyIO ( RubyContext context, Stream stream, int descriptor, IOMode mode ) : System
context RubyContext
stream Stream
descriptor int
mode IOMode
Résultat System

RubyIO() public méthode

public RubyIO ( RubyContext context, StreamReader reader, StreamWriter writer, IOMode mode ) : System
context RubyContext
reader StreamReader
writer StreamWriter
mode IOMode
Résultat System

Seek() public méthode

public Seek ( long offset, SeekOrigin origin ) : void
offset long
origin SeekOrigin
Résultat void

SetFileDescriptor() public méthode

public SetFileDescriptor ( int value ) : void
value int
Résultat void

SetReadTimeout() public méthode

public SetReadTimeout ( int timeout ) : int
timeout int
Résultat int

SetStream() public méthode

public SetStream ( Stream stream ) : void
stream Stream
Résultat void

ToSeekOrigin() public static méthode

public static ToSeekOrigin ( int rubySeekOrigin ) : SeekOrigin
rubySeekOrigin int
Résultat SeekOrigin

ToString() public méthode

public ToString ( ) : string
Résultat string

WriteBytes() public méthode

public WriteBytes ( MutableString buffer, int index, int count ) : int
buffer MutableString
index int
count int
Résultat int

WriteBytes() public méthode

public WriteBytes ( byte buffer, int index, int count ) : int
buffer byte
index int
count int
Résultat int

WriteBytes() public méthode

public WriteBytes ( char buffer, int index, int count ) : int
buffer char
index int
count int
Résultat int

WriteBytes() public méthode

public WriteBytes ( string value ) : int
value string
Résultat int