You are here

public function ParserCSV::lastLinePos in Feeds 8.2

Get the byte number where the parser left off after last parse() call.

Return value

0 if all lines or no line has been parsed, the byte position of where a timeout or the line limit has been reached otherwise. This position can be used to set the start byte for the next iteration after parse() has reached the timeout set with setTimeout() or the line limit set with setLineLimit().

See also

ParserCSV::setStartByte()

File

lib/Drupal/feeds/ParserCSV.php, line 115
Contains CSV Parser.

Class

ParserCSV
Functionality to parse CSV files into a two dimensional array.

Namespace

Drupal\feeds

Code

public function lastLinePos() {
  return $this->lastLinePos;
}