Contains buffer - queue of elements that extends from given iterator when particular elements are requested;
and shrinks by calling dropBuffer
method.
ParserInput class represents data that is needed to parse.
ParserInput class represents data that is needed to parse.
It can be regular IndexedSeq
that behaves as simple array or
Iterator
of IndexedSeq
batches which is optimized by dropBuffer
method.
Encapsulates all the common operations on each Elem and Repr that FastParse needs to perform it's core functionality.
Encapsulates all the common operations on each Elem and Repr that
FastParse needs to perform it's core functionality. This is provided
separately, in order to avoid converting every possible input into a
lowest-common-denominator type (e.g. IndexedSeq[Elem]
) to avoid
unnecessarily paying conversion-costs and copying the input.
A very fast circular, growable read-write byte buffer.
Base64 encoder
Contains buffer - queue of elements that extends from given iterator when particular elements are requested; and shrinks by calling
dropBuffer
method.Generally, at any specific time this buffer contains "suffix" of given iterator, e.g. some piece of data from past calls of
next
, which extends by requesting new batches from iterator. Therefore we can denote the same notation of indices as for regularArray
or more abstractIndexedSeq
. The only difference is when index doesn't fit into the bounds of current buffer either the new batches are requested to extend the buffer, either it's inaccessible at all, so calling ofdropBuffer
should guarantee that there won't be any attempts to access to the elements in dropped part of input.