ILookAheadBuffer Interface

Defines the I Look Ahead Buffer contract.

public interface ILookAheadBuffer

Properties

NameDescription
EndOfInputGets a value indicating whether the end of the input reader has been reached.

EndOfInput

Gets a value indicating whether the end of the input reader has been reached.

bool EndOfInput { get; }

Property value

bool

Methods

NameDescription
Cache(int)Reads characters until at least length characters are in the buffer.
Peek(int)Gets the character at thhe specified offset.
Skip(int)Skips the next length characters. Those characters must have been obtained first by calling the ILookAheadBuffer.Peek method.

Cache(int)

Reads characters until at least length characters are in the buffer.

void Cache(int length)

Parameters

length int
Number of characters to cache.

Peek(int)

Gets the character at thhe specified offset.

char Peek(int offset)

Parameters

offset int

Returns

char

Skip(int)

Skips the next length characters. Those characters must have been obtained first by calling the ILookAheadBuffer.Peek method.

void Skip(int length)

Parameters

length int