/** * Seeks to specific location in a stream. * * This method is called in response to fseek(). * * The read/write position of the stream should be updated according to the * offset and whence . * * $whence can one of: * 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. * * @param integer $offset The stream offset to seek to. * @param integer $whence * @return boolean TRUE on success or FALSE on failure. */ public function stream_seek($offset, $whence = SEEK_SET) { return $this->streamWrapper->seek($offset, $whence); }