PHPDaemon\FS\File::seek PHP Method

seek() public method

Move pointer to arbitrary position
public seek ( integer $offset, callable $cb, integer $pri = EIO_PRI_DEFAULT ) : resource | false
$offset integer Offset
$cb callable Callback
$pri integer 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);
    }