You are here

public function ParserCSV::lastLinePos in Feeds 7.2

Same name and namespace in other branches
  1. 6 libraries/ParserCSV.inc \ParserCSV::lastLinePos()
  2. 7 libraries/ParserCSV.inc \ParserCSV::lastLinePos()

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

Return value

int 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

libraries/ParserCSV.inc, line 221
Contains CSV Parser.

Class

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

Code

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