PHPDaemon\FS\File::seek PHP 메소드

seek() 공개 메소드

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
리턴 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);
    }