Rserve::ParserState - Current state of the parser
use Rserve::ParserState;
my $state = Rserve::ParserState->new(data => 'file.rds');
say $state->at
say $state->next->at;You shouldn't create instances of this class, it exists mainly to handle deserialization of R data files.
An array reference to the data being parsed. The constructs accepts a scalar, which will be split into individual characters.
Position of the next data element to be processed.
Returns the element (byte) at the current position.
Returns true if the cursor (position) is at the end of the data.
ParserState is intended to be immutable, so the "mutator" methods actually return a new instance with appropriately modified values of the attributes.
Returns a new ParserState instance with position advanced by one.