Method | Description | |
---|---|---|
Cache ( int length ) : void |
Reads characters until at least length characters are in the buffer.
|
|
LookAheadBuffer ( |
Initializes a new instance of the LookAheadBuffer class.
|
|
Peek ( int offset ) : char |
Gets the character at thhe specified offset.
|
|
Skip ( int length ) : void |
Skips the next length characters. Those characters must have been obtained first by calling the Peek or Cache methods.
|
Method | Description | |
---|---|---|
GetIndexForOffset ( int offset ) : int |
Gets the index of the character for the specified offset.
|
public Cache ( int length ) : void | ||
length | int | /// Number of characters to cache. /// |
return | void |
public LookAheadBuffer ( |
||
input | The input. | |
capacity | int | The capacity. |
return | System |