C# Class IronRuby.Builtins.ConsoleStream

A custom Stream class that forwards calls to Console In/Out/Error based on ConsoleType
Inheritance: Stream
Exibir arquivo Open project: ExpertsInside/IronSP

Public Methods

Method Description
ConsoleStream ( SharedIO io, ConsoleStreamType consoleType ) : System
Flush ( ) : void
Read ( byte buffer, int offset, int count ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

Method Details

ConsoleStream() public method

public ConsoleStream ( SharedIO io, ConsoleStreamType consoleType ) : System
io Microsoft.Scripting.Runtime.SharedIO
consoleType ConsoleStreamType
return System

Flush() public method

public Flush ( ) : void
return void

Read() public method

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

Seek() public method

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

SetLength() public method

public SetLength ( long value ) : void
value long
return void

Write() public method

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void