| @@ 138-144 (lines=7) @@ | ||
| 135 | $this->cursorPosition = ftell($this->stream); |
|
| 136 | ||
| 137 | $skipNum = 0; |
|
| 138 | if ($start > $this->cursorPosition) { |
|
| 139 | // 後方へ移動 |
|
| 140 | $skipNum = $start - $this->cursorPosition; |
|
| 141 | } else { |
|
| 142 | // 前方へ移動 |
|
| 143 | $skipNum = $this->cursorPosition - $start; |
|
| 144 | } |
|
| 145 | ||
| 146 | return $skipNum; |
|
| 147 | } |
|
| @@ 148-154 (lines=7) @@ | ||
| 145 | ||
| 146 | // skipした実際のバイト数 |
|
| 147 | $skipNum = 0; |
|
| 148 | if ($start > $this->cursorPosition) { |
|
| 149 | // 後方へ移動 |
|
| 150 | $skipNum = $start - $this->cursorPosition; |
|
| 151 | } else { |
|
| 152 | // 前方へ移動 |
|
| 153 | $skipNum = $this->cursorPosition - $start; |
|
| 154 | } |
|
| 155 | ||
| 156 | return $skipNum; |
|
| 157 | } |
|