Special method for Iterator
mode.
Special method for Iterator
mode. It drops the prefix of the internal buffer
so that all the data strictly before becomes unavailable and index
is the first valid element to access.
Shows if we can access to the element at given index
.
Shows if we can access to the element at given index
.
Slice of internal data.
For IndexedSeq
mode it works as regular slice, if until
overshoots the end of input,
it just ignores it and behaves like until
equals to the length of input.
Same for Iterator
mode, but it requests batches while the index of last retrieved element is less than until
and if until
is farther away than any element, it ignores this too.
ParserInput class represents data that is needed to parse.
It can be regular
IndexedSeq
that behaves as simple array orIterator
ofIndexedSeq
batches which is optimized bydropBuffer
method.