/**
* The read write position updates in response to $offset and $whence
*
* @param integer $offset The offset in bytes
* @param integer $whence Position the offset is added to
* Options are SEEK_SET, SEEK_CUR, and SEEK_END
*
* @return boolean True if updated
*
* @see streamWrapper::stream_seek
* @since 1.7.0
*/
public function stream_seek($offset, $whence)
{
switch ($whence) {
case SEEK_SET:
return $this->seek_set($offset);
case SEEK_CUR:
return $this->seek_cur($offset);
case SEEK_END:
return $this->seek_end($offset);
}
return false;
}