C# Класс IronRuby.Builtins.RubyBufferedStream

Наследование: Stream
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AppendRawBytes void
ConsumeBuffered void
ConsumeLine MutableString
FlushRead void
IndexOfCrLf int
LoadBuffer int
PeekByte int
ReadBufferByte byte

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AppendBytes() публичный Метод

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
Результат int

Close() публичный Метод

public Close ( ) : void
Результат void

Flush() публичный Метод

public Flush ( ) : void
Результат void

PeekByte() публичный Метод

public PeekByte ( ) : int
Результат int

PeekByteNormalizeEoln() публичный Метод

public PeekByteNormalizeEoln ( bool preserveEndOfLines ) : int
preserveEndOfLines bool
Результат int

PushBack() публичный Метод

public PushBack ( byte b ) : void
b byte
Результат void

Read() публичный Метод

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Результат int

ReadByte() публичный Метод

public ReadByte ( ) : int
Результат int

ReadByteNormalizeEoln() публичный Метод

public ReadByteNormalizeEoln ( bool preserveEndOfLines ) : int
preserveEndOfLines bool
Результат int

ReadLine() публичный Метод

public ReadLine ( MutableString separator, IronRuby.Builtins.RubyEncoding encoding, bool preserveEndOfLines, int limit ) : MutableString
separator MutableString
encoding IronRuby.Builtins.RubyEncoding
preserveEndOfLines bool
limit int
Результат MutableString

ReadLine() публичный Метод

public ReadLine ( IronRuby.Builtins.RubyEncoding encoding, bool preserveEndOfLines, int limit ) : MutableString
encoding IronRuby.Builtins.RubyEncoding
preserveEndOfLines bool
limit int
Результат MutableString

ReadLineOrParagraph() публичный Метод

public ReadLineOrParagraph ( MutableString separator, IronRuby.Builtins.RubyEncoding encoding, bool preserveEndOfLines, int limit ) : MutableString
separator MutableString
encoding IronRuby.Builtins.RubyEncoding
preserveEndOfLines bool
limit int
Результат MutableString

ReadParagraph() публичный Метод

public ReadParagraph ( IronRuby.Builtins.RubyEncoding encoding, bool preserveEndOfLines, int limit ) : MutableString
encoding IronRuby.Builtins.RubyEncoding
preserveEndOfLines bool
limit int
Результат MutableString

RubyBufferedStream() публичный Метод

public RubyBufferedStream ( Stream stream ) : System
stream Stream
Результат System

RubyBufferedStream() публичный Метод

public RubyBufferedStream ( Stream stream, bool pushBackPreservesPosition ) : System
stream Stream
pushBackPreservesPosition bool
Результат System

RubyBufferedStream() публичный Метод

public RubyBufferedStream ( Stream stream, bool pushBackPreservesPosition, int bufferSize ) : System
stream Stream
pushBackPreservesPosition bool
bufferSize int
Результат System

Seek() публичный Метод

public Seek ( long pos, SeekOrigin origin ) : long
pos long
origin SeekOrigin
Результат long

SetLength() публичный Метод

public SetLength ( long value ) : void
value long
Результат void

Write() публичный Метод

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Результат void

WriteBytes() публичный Метод

public WriteBytes ( MutableString buffer, int offset, int count, bool preserveEndOfLines ) : int
buffer MutableString
offset int
count int
preserveEndOfLines bool
Результат int

WriteBytes() публичный Метод

public WriteBytes ( byte buffer, int offset, int count, bool preserveEndOfLines ) : int
buffer byte
offset int
count int
preserveEndOfLines bool
Результат int