C# Class 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
Inheritance: ScanBuff
Afficher le fichier Open project: Trass3r/AsmHighlighter

Protected Properties

Свойство Type Description
bStrm System.IO.BufferedStream
delta int

Méthodes publiques

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

Méthodes protégées

Méthode Description
TextBuff ( Stream str ) : System

Private Methods

Méthode Description
BadUTF8 ( ) : Exception

Method Details

GetString() public final méthode

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

NewTextBuff() public static méthode

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

Peek() public final méthode

public final Peek ( ) : int
Résultat int

Read() public méthode

public Read ( ) : int
Résultat int

TextBuff() protected méthode

protected TextBuff ( Stream str ) : System
str Stream
Résultat System

Property Details

bStrm protected_oe property

protected BufferedStream,System.IO bStrm
Résultat System.IO.BufferedStream

delta protected_oe property

protected int delta
Résultat int