| @@ 308-317 (lines=10) @@ | ||
| 305 | } |
|
| 306 | return false; |
|
| 307 | } |
|
| 308 | if (!FileSystem::$supported) { |
|
| 309 | if ($offset !== null) { |
|
| 310 | fseek($data, $offset); |
|
| 311 | } |
|
| 312 | $r = fwrite($this->fd, $data); |
|
| 313 | if ($cb) { |
|
| 314 | $cb($this, $r); |
|
| 315 | } |
|
| 316 | return false; |
|
| 317 | } |
|
| 318 | if ($cb !== null) { |
|
| 319 | $this->onWriteOnce->push($cb); |
|
| 320 | } |
|
| @@ 426-433 (lines=8) @@ | ||
| 423 | } |
|
| 424 | return false; |
|
| 425 | } |
|
| 426 | if (!FileSystem::$supported) { |
|
| 427 | if ($offset !== null) { |
|
| 428 | fseek($this->fd, $length); |
|
| 429 | } |
|
| 430 | $data = fread($this->fd, $length); |
|
| 431 | $cb === null || $cb($this, $data); |
|
| 432 | return $data; |
|
| 433 | } |
|
| 434 | $this->offset += $length; |
|
| 435 | eio_read( |
|
| 436 | $this->fd, |
|