You are here

private function PHPExcel_Reader_Excel5_Escher::_readDefault in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5/Escher.php \PHPExcel_Reader_Excel5_Escher::_readDefault()

* Read a generic record

1 call to PHPExcel_Reader_Excel5_Escher::_readDefault()
PHPExcel_Reader_Excel5_Escher::load in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5/Escher.php
* Load Escher stream data. May be a partial Escher stream. * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5/Escher.php, line 143

Class

PHPExcel_Reader_Excel5_Escher
PHPExcel_Reader_Excel5_Escher

Code

private function _readDefault() {

  // offset 0; size: 2; recVer and recInstance
  $verInstance = PHPExcel_Reader_Excel5::_GetInt2d($this->_data, $this->_pos);

  // offset: 2; size: 2: Record Type
  $fbt = PHPExcel_Reader_Excel5::_GetInt2d($this->_data, $this->_pos + 2);

  // bit: 0-3; mask: 0x000F; recVer
  $recVer = (0xf & $verInstance) >> 0;
  $length = PHPExcel_Reader_Excel5::_GetInt4d($this->_data, $this->_pos + 4);
  $recordData = substr($this->_data, $this->_pos + 8, $length);

  // move stream pointer to next record
  $this->_pos += 8 + $length;
}