WebStream/IO/FileInputStream.php 1 location
|
@@ 124-130 (lines=7) @@
|
| 121 |
|
$this->cursorPosition = ftell($this->stream); |
| 122 |
|
|
| 123 |
|
$skipNum = 0; |
| 124 |
|
if ($start > $this->cursorPosition) { |
| 125 |
|
// 後方へ移動 |
| 126 |
|
$skipNum = $start - $this->cursorPosition; |
| 127 |
|
} else { |
| 128 |
|
// 前方へ移動 |
| 129 |
|
$skipNum = $this->cursorPosition - $start; |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
return $skipNum; |
| 133 |
|
} |
WebStream/IO/StringInputStream.php 1 location
|
@@ 130-136 (lines=7) @@
|
| 127 |
|
|
| 128 |
|
// skipした実際のバイト数 |
| 129 |
|
$skipNum = 0; |
| 130 |
|
if ($start > $this->cursorPosition) { |
| 131 |
|
// 後方へ移動 |
| 132 |
|
$skipNum = $start - $this->cursorPosition; |
| 133 |
|
} else { |
| 134 |
|
// 前方へ移動 |
| 135 |
|
$skipNum = $this->cursorPosition - $start; |
| 136 |
|
} |
| 137 |
|
|
| 138 |
|
return $skipNum; |
| 139 |
|
} |