WebStream/IO/InputStream.php 1 location
|
@@ 119-125 (lines=7) @@
|
| 116 |
|
$this->cursorPosition = ftell($this->stream); |
| 117 |
|
|
| 118 |
|
$skipNum = 0; |
| 119 |
|
if ($start > $this->cursorPosition) { |
| 120 |
|
// 前方へ移動 |
| 121 |
|
$skipNum = $start - $this->cursorPosition; |
| 122 |
|
} else { |
| 123 |
|
// 後方へ移動 |
| 124 |
|
$skipNum = $this->cursorPosition - $start; |
| 125 |
|
} |
| 126 |
|
|
| 127 |
|
return $skipNum; |
| 128 |
|
} |
WebStream/IO/StringInputStream.php 1 location
|
@@ 83-89 (lines=7) @@
|
| 80 |
|
$this->cursorPosition = $pos; |
| 81 |
|
|
| 82 |
|
$skipNum = 0; |
| 83 |
|
if ($start > $this->cursorPosition) { |
| 84 |
|
// 前方へ移動 |
| 85 |
|
$skipNum = $start - $this->cursorPosition; |
| 86 |
|
} else { |
| 87 |
|
// 後方へ移動 |
| 88 |
|
$skipNum = $this->cursorPosition - $start; |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
return $skipNum; |
| 92 |
|
} |