protected function loadLocationTable()
{
fseek($this->filePointer, 0);
$this->lastSector = 1;
$data = unpack("N*", fread($this->filePointer, 4 * 1024 * 2));
//1024 records * 4 bytes * 2 times
for ($i = 0; $i < 1024; ++$i) {
$index = $data[$i + 1];
$this->locationTable[$i] = [$index >> 8, $index & 0xff, $data[1024 + $i + 1]];
if ($this->locationTable[$i][0] + $this->locationTable[$i][1] - 1 > $this->lastSector) {
$this->lastSector = $this->locationTable[$i][0] + $this->locationTable[$i][1] - 1;
}
}
}