| @@ 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 | } |
|
| @@ 98-104 (lines=7) @@ | ||
| 95 | } |
|
| 96 | ||
| 97 | $skipNum = 0; |
|
| 98 | if ($start > $this->cursorPosition) { |
|
| 99 | // 前方へ移動 |
|
| 100 | $skipNum = $start - $this->cursorPosition; |
|
| 101 | } else { |
|
| 102 | // 後方へ移動 |
|
| 103 | $skipNum = $this->cursorPosition - $start; |
|
| 104 | } |
|
| 105 | ||
| 106 | return $skipNum; |
|
| 107 | } |
|