Beispiel #1
0
 /**
  * Constructs the class with given parameters and reads object related data
  * from the bitstream.
  *
  * @param HausDesign_Io_Reader $reader The reader object.
  * @param Array $options Array of options.
  */
 public function __construct($reader, &$options = array())
 {
     parent::__construct($reader, $options);
     $flags = $reader->readUInt32BE();
     if (HausDesign_Bit_Twiddling::testAnyBits($flags, 0x1)) {
         $this->_frames = $this->_reader->readUInt32BE();
     }
     if (HausDesign_Bit_Twiddling::testAnyBits($flags, 0x2)) {
         $this->_bytes = $this->_reader->readUInt32BE();
     }
     if (HausDesign_Bit_Twiddling::testAnyBits($flags, 0x4)) {
         $this->_toc = array_merge(unpack('C*', $this->_reader->read(100)));
     }
     if (HausDesign_Bit_Twiddling::testAnyBits($flags, 0x8)) {
         $this->_qualityIndicator = $this->_reader->readUInt32BE();
     }
 }