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
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
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