/** * Move pointer to arbitrary position * @param integer $offset Offset * @param callable $cb Callback * @param integer $pri Priority * @return resource|false */ public function seek($offset, $cb, $pri = EIO_PRI_DEFAULT) { $cb = CallbackWrapper::forceWrap($cb); if (!\EIO::$supported) { fseek($this->fd, $offset); return false; } return eio_seek($this->fd, $offset, $pri, $cb, $this); }
public function seek($offset, $cb, $pri) { if (!EIO::$supported) { fseek($this->fd, $offset); return; } return eio_seek($this->fd, $offset, $pri, $cb, $this); }