Zend_Search_Lucene_Storage_File_Memory::seek
Sets the file position indicator and advances the file pointer.
The new position, measured in bytes from the beginning of the file, is obtained by adding offset to the position specified by whence, whose values are defined as follows: SEEK_SET - Set position equal to offset bytes. SEEK_CUR - Set position to current location plus offset. SEEK_END - Set position to end-of-file plus offset. (To move to a position before the end-of-file, you need to pass a negative value in offset.) Upon success, returns 0; otherwise, returns -1
Signature
public function seek(integer
$offset,
[integer
$whence = SEEK_SET] )
Parameters
$offset
— integer$whence
— integer
Returns
- integer