@@ 160-167 (lines=8) @@ | ||
157 | ||
158 | // Read rest of Master Block Allocation Table (if any is left) |
|
159 | $pos = $this->_getBlockOffset($mbatFirstBlockId); |
|
160 | for ($i = 0; $i < $mbbatBlockCount; ++$i) { |
|
161 | fseek($fh, $pos); |
|
162 | for ($j = 0; $j < $this->bigBlockSize / 4 - 1; ++$j) { |
|
163 | $mbatBlocks[] = self::_readInt4($fh); |
|
164 | } |
|
165 | // Last block id in each block points to next block |
|
166 | $pos = $this->_getBlockOffset(self::_readInt4($fh)); |
|
167 | } |
|
168 | ||
169 | // Read Big Block Allocation Table according to chain specified by $mbatBlocks |
|
170 | for ($i = 0; $i < $bbatBlockCount; ++$i) { |
|
@@ 170-176 (lines=7) @@ | ||
167 | } |
|
168 | ||
169 | // Read Big Block Allocation Table according to chain specified by $mbatBlocks |
|
170 | for ($i = 0; $i < $bbatBlockCount; ++$i) { |
|
171 | $pos = $this->_getBlockOffset($mbatBlocks[$i]); |
|
172 | fseek($fh, $pos); |
|
173 | for ($j = 0; $j < $this->bigBlockSize / 4; ++$j) { |
|
174 | $this->bbat[] = self::_readInt4($fh); |
|
175 | } |
|
176 | } |
|
177 | ||
178 | // Read short block allocation table (SBAT) |
|
179 | $this->sbat = []; |