C# Class IronRuby.Builtins.RubyBufferedStream

Inheritance: Stream
Afficher le fichier Open project: jschementi/iron Class Usage Examples

Private Properties

Свойство Type Description
AppendRawBytes void
ConsumeBuffered void
ConsumeLine MutableString
FlushRead void
IndexOfCrLf int
LoadBuffer int
PeekByte int
ReadBufferByte byte

Méthodes publiques

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

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

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
Résultat int

Close() public méthode

public Close ( ) : void
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

PeekByte() public méthode

public PeekByte ( ) : int
Résultat int

PeekByteNormalizeEoln() public méthode

public PeekByteNormalizeEoln ( bool preserveEndOfLines ) : int
preserveEndOfLines bool
Résultat int

PushBack() public méthode

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

Read() public méthode

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Résultat int

ReadByte() public méthode

public ReadByte ( ) : int
Résultat int

ReadByteNormalizeEoln() public méthode

public ReadByteNormalizeEoln ( bool preserveEndOfLines ) : int
preserveEndOfLines bool
Résultat int

ReadLine() public méthode

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

ReadLine() public méthode

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

ReadLineOrParagraph() public méthode

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

ReadParagraph() public méthode

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

RubyBufferedStream() public méthode

public RubyBufferedStream ( Stream stream ) : System
stream Stream
Résultat System

RubyBufferedStream() public méthode

public RubyBufferedStream ( Stream stream, bool pushBackPreservesPosition ) : System
stream Stream
pushBackPreservesPosition bool
Résultat System

RubyBufferedStream() public méthode

public RubyBufferedStream ( Stream stream, bool pushBackPreservesPosition, int bufferSize ) : System
stream Stream
pushBackPreservesPosition bool
bufferSize int
Résultat System

Seek() public méthode

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

SetLength() public méthode

public SetLength ( long value ) : void
value long
Résultat void

Write() public méthode

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Résultat void

WriteBytes() public méthode

public WriteBytes ( MutableString buffer, int offset, int count, bool preserveEndOfLines ) : int
buffer MutableString
offset int
count int
preserveEndOfLines bool
Résultat int

WriteBytes() public méthode

public WriteBytes ( byte buffer, int offset, int count, bool preserveEndOfLines ) : int
buffer byte
offset int
count int
preserveEndOfLines bool
Résultat int