C# 클래스 IronRuby.Builtins.RubyBufferedStream

상속: Stream
파일 보기 프로젝트 열기: jschementi/iron 1 사용 예제들

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