Пример #1
0
 /**
  * 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);
 }
Пример #2
0
 public function seek($offset, $cb, $pri)
 {
     if (!EIO::$supported) {
         fseek($this->fd, $offset);
         return;
     }
     return eio_seek($this->fd, $offset, $pri, $cb, $this);
 }