C# 클래스 AsmHighlighter.Lexer.Scanner.TextBuff

This is the Buffer for UTF8 files. It attempts to read the encoding preamble, which for this encoding should be unicode point \uFEFF which is encoded as EF BB BF
상속: ScanBuff
파일 보기 프로젝트 열기: Trass3r/AsmHighlighter

보호된 프로퍼티들

프로퍼티 타입 설명
bStrm System.IO.BufferedStream
delta int

공개 메소드들

메소드 설명
GetString ( int beg, int end ) : string

Returns the string from the buffer between the given file positions. This needs to be done carefully, as the number of characters is, in general, not equal to (end - beg).

NewTextBuff ( Stream strm ) : TextBuff

TextBuff factory. Reads the file preamble and returns a TextBuff, LittleEndTextBuff or BigEndTextBuff according to the result.

Peek ( ) : int
Read ( ) : int

보호된 메소드들

메소드 설명
TextBuff ( Stream str ) : System

비공개 메소드들

메소드 설명
BadUTF8 ( ) : Exception

메소드 상세

GetString() 공개 최종 메소드

Returns the string from the buffer between the given file positions. This needs to be done carefully, as the number of characters is, in general, not equal to (end - beg).
public final GetString ( int beg, int end ) : string
beg int Begin filepos
end int End filepos
리턴 string

NewTextBuff() 공개 정적인 메소드

TextBuff factory. Reads the file preamble and returns a TextBuff, LittleEndTextBuff or BigEndTextBuff according to the result.
public static NewTextBuff ( Stream strm ) : TextBuff
strm Stream The underlying stream
리턴 TextBuff

Peek() 공개 최종 메소드

public final Peek ( ) : int
리턴 int

Read() 공개 메소드

public Read ( ) : int
리턴 int

TextBuff() 보호된 메소드

protected TextBuff ( Stream str ) : System
str Stream
리턴 System

프로퍼티 상세

bStrm 보호되어 있는 프로퍼티

protected BufferedStream,System.IO bStrm
리턴 System.IO.BufferedStream

delta 보호되어 있는 프로퍼티

protected int delta
리턴 int