C# Class IronRuby.Builtins.RubyBufferedStream

Inheritance: Stream
Exibir arquivo Open project: jschementi/iron Class Usage Examples

Private Properties

Property Type Description
AppendRawBytes void
ConsumeBuffered void
ConsumeLine MutableString
FlushRead void
IndexOfCrLf int
LoadBuffer int
PeekByte int
ReadBufferByte byte

Public Methods

Method Description
AppendBytes ( MutableString buffer, int count, bool preserveEndOfLines ) : int

Reads count bytes from the stream and appends them to the given buffer. If count is Int32.MaxValue the stream is read to the end. Unless preserveEndOfLines is set the line endings in the appended data are normalized to "\n".

Close ( ) : void
Flush ( ) : void
PeekByte ( ) : int
PeekByteNormalizeEoln ( bool preserveEndOfLines ) : int
PushBack ( byte b ) : void
Read ( byte buffer, int offset, int count ) : int
ReadByte ( ) : int
ReadByteNormalizeEoln ( bool preserveEndOfLines ) : int
ReadLine ( MutableString separator, IronRuby.Builtins.RubyEncoding encoding, bool preserveEndOfLines, int limit ) : MutableString
ReadLine ( IronRuby.Builtins.RubyEncoding encoding, bool preserveEndOfLines, int limit ) : MutableString
ReadLineOrParagraph ( MutableString separator, IronRuby.Builtins.RubyEncoding encoding, bool preserveEndOfLines, int limit ) : MutableString
ReadParagraph ( IronRuby.Builtins.RubyEncoding encoding, bool preserveEndOfLines, int limit ) : MutableString
RubyBufferedStream ( Stream stream ) : System
RubyBufferedStream ( Stream stream, bool pushBackPreservesPosition ) : System
RubyBufferedStream ( Stream stream, bool pushBackPreservesPosition, int bufferSize ) : System
Seek ( long pos, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void
WriteBytes ( MutableString buffer, int offset, int count, bool preserveEndOfLines ) : int
WriteBytes ( byte buffer, int offset, int count, bool preserveEndOfLines ) : int

Private Methods

Method Description
AppendRawBytes ( MutableString buffer, int count ) : void
ConsumeBuffered ( int count ) : void
ConsumeLine ( IronRuby.Builtins.RubyEncoding encoding, int lineLength, int consume, bool bufferResized ) : MutableString
FlushRead ( ) : void
IndexOfCrLf ( byte array, int i ) : int
LoadBuffer ( int count ) : int
PeekByte ( int i ) : int

Peeks i-th byte. Assumes small i.

ReadBufferByte ( ) : byte

Method Details

AppendBytes() public method

Reads count bytes from the stream and appends them to the given buffer. If count is Int32.MaxValue the stream is read to the end. Unless preserveEndOfLines is set the line endings in the appended data are normalized to "\n".
public AppendBytes ( MutableString buffer, int count, bool preserveEndOfLines ) : int
buffer MutableString
count int
preserveEndOfLines bool
return int

Close() public method

public Close ( ) : void
return void

Flush() public method

public Flush ( ) : void
return void

PeekByte() public method

public PeekByte ( ) : int
return int

PeekByteNormalizeEoln() public method

public PeekByteNormalizeEoln ( bool preserveEndOfLines ) : int
preserveEndOfLines bool
return int

PushBack() public method

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

Read() public method

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

ReadByte() public method

public ReadByte ( ) : int
return int

ReadByteNormalizeEoln() public method

public ReadByteNormalizeEoln ( bool preserveEndOfLines ) : int
preserveEndOfLines bool
return int

ReadLine() public method

public ReadLine ( MutableString separator, IronRuby.Builtins.RubyEncoding encoding, bool preserveEndOfLines, int limit ) : MutableString
separator MutableString
encoding IronRuby.Builtins.RubyEncoding
preserveEndOfLines bool
limit int
return MutableString

ReadLine() public method

public ReadLine ( IronRuby.Builtins.RubyEncoding encoding, bool preserveEndOfLines, int limit ) : MutableString
encoding IronRuby.Builtins.RubyEncoding
preserveEndOfLines bool
limit int
return MutableString

ReadLineOrParagraph() public method

public ReadLineOrParagraph ( MutableString separator, IronRuby.Builtins.RubyEncoding encoding, bool preserveEndOfLines, int limit ) : MutableString
separator MutableString
encoding IronRuby.Builtins.RubyEncoding
preserveEndOfLines bool
limit int
return MutableString

ReadParagraph() public method

public ReadParagraph ( IronRuby.Builtins.RubyEncoding encoding, bool preserveEndOfLines, int limit ) : MutableString
encoding IronRuby.Builtins.RubyEncoding
preserveEndOfLines bool
limit int
return MutableString

RubyBufferedStream() public method

public RubyBufferedStream ( Stream stream ) : System
stream Stream
return System

RubyBufferedStream() public method

public RubyBufferedStream ( Stream stream, bool pushBackPreservesPosition ) : System
stream Stream
pushBackPreservesPosition bool
return System

RubyBufferedStream() public method

public RubyBufferedStream ( Stream stream, bool pushBackPreservesPosition, int bufferSize ) : System
stream Stream
pushBackPreservesPosition bool
bufferSize int
return System

Seek() public method

public Seek ( long pos, SeekOrigin origin ) : long
pos 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

WriteBytes() public method

public WriteBytes ( MutableString buffer, int offset, int count, bool preserveEndOfLines ) : int
buffer MutableString
offset int
count int
preserveEndOfLines bool
return int

WriteBytes() public method

public WriteBytes ( byte buffer, int offset, int count, bool preserveEndOfLines ) : int
buffer byte
offset int
count int
preserveEndOfLines bool
return int