Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
NShader.Lexer.Scanner.TextBuff Class Reference

This is the Buffer for UTF8 files. It attempts to read the encoding preamble, which for this encoding should be unicode point which is encoded as EF BB BF More...

Inheritance diagram for NShader.Lexer.Scanner.TextBuff:
NShader.Lexer.ScanBuff NShader.Lexer.Scanner.BigEndTextBuff NShader.Lexer.Scanner.LittleEndTextBuff

Public Member Functions

override int Read ()
 
sealed override int Peek ()
 
sealed override string GetString (int beg, int end)
 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). More...
 

Static Public Member Functions

static TextBuff NewTextBuff (Stream strm)
 TextBuff factory. Reads the file preamble and returns a TextBuff, LittleEndTextBuff or BigEndTextBuff according to the result. More...
 

Protected Member Functions

 TextBuff (Stream str)
 

Protected Attributes

BufferedStream bStrm
 
int delta = 1
 

Properties

sealed override int ReadPos [get]
 
sealed override int Pos [get, set]
 
- Properties inherited from NShader.Lexer.ScanBuff
abstract int Pos [get, set]
 
abstract int ReadPos [get]
 

Additional Inherited Members

- Public Attributes inherited from NShader.Lexer.ScanBuff
const int EOF = -1
 

Detailed Description

This is the Buffer for UTF8 files. It attempts to read the encoding preamble, which for this encoding should be unicode point which is encoded as EF BB BF

Definition at line 531 of file ShaderMPlexer.cs.

Constructor & Destructor Documentation

NShader.Lexer.Scanner.TextBuff.TextBuff ( Stream  str)
protected

Definition at line 569 of file ShaderMPlexer.cs.

Member Function Documentation

sealed override string NShader.Lexer.Scanner.TextBuff.GetString ( int  beg,
int  end 
)
virtual

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).

Parameters
begBegin filepos
endEnd filepos
Returns

Implements NShader.Lexer.ScanBuff.

Definition at line 627 of file ShaderMPlexer.cs.

static TextBuff NShader.Lexer.Scanner.TextBuff.NewTextBuff ( Stream  strm)
static

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

Parameters
strmThe underlying stream
Returns

Definition at line 546 of file ShaderMPlexer.cs.

sealed override int NShader.Lexer.Scanner.TextBuff.Peek ( )
virtual

Implements NShader.Lexer.ScanBuff.

Definition at line 611 of file ShaderMPlexer.cs.

override int NShader.Lexer.Scanner.TextBuff.Read ( )
virtual

Member Data Documentation

BufferedStream NShader.Lexer.Scanner.TextBuff.bStrm
protected

Definition at line 533 of file ShaderMPlexer.cs.

int NShader.Lexer.Scanner.TextBuff.delta = 1
protected

Definition at line 534 of file ShaderMPlexer.cs.

Property Documentation

sealed override int NShader.Lexer.Scanner.TextBuff.Pos
getset

Definition at line 642 of file ShaderMPlexer.cs.

sealed override int NShader.Lexer.Scanner.TextBuff.ReadPos
get

Definition at line 607 of file ShaderMPlexer.cs.


The documentation for this class was generated from the following file: