Click or drag to resize

LookaheadStreamT Methods

The LookaheadStreamT generic type exposes the following members.

Methods
  NameDescription
Public methodClear (Inherited from FastQueueT.)
Public methodConsume
Make sure we have at least one element to remove, even if EOF
Public methodDequeue
Get and remove first element in queue; override {@link FastQueue#remove()}; it's the same, just checks for backtracking.
(Overrides FastQueueTDequeue.)
Public methodEnqueue (Inherited from FastQueueT.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFill
add n elements to buffer
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsEndOfFile
Protected methodLB
Public methodLT
Public methodMark
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNextElement
Implement nextElement to supply a stream of elements to this lookahead buffer. Return EOF upon end of the stream we're pulling from.
Public methodPeek (Inherited from FastQueueT.)
Public methodRelease
Public methodReset
Public methodRewind
Public methodRewind(Int32)
Public methodSeek
Seek to a 0-indexed absolute token index. Normally used to seek backwards in the buffer. Does not force loading of nodes.
Protected methodSyncAhead
Make sure we have 'need' elements from current position p. Last valid p index is data.size()-1. p+need-1 is the data index 'need' elements ahead. If we need 1 element, (p+1-1)==p must be < data.size().
Public methodToString
Return string of current buffer contents; non-destructive
(Inherited from FastQueueT.)
Top
See Also