/** * Writes the frame raw data without the header. * * @param HausDesign_Io_Writer $writer The writer object. * @return void */ protected function _writeData($writer) { if ($this->_counter > 4294967295) { $writer->writeInt64BE($this->_counter); // UInt64 } else { $writer->writeUInt32BE($this->_counter); } }
/** * Writes the frame raw data without the header. * * @param HausDesign_Io_Writer $writer The writer object. * @return void */ protected function _writeData($writer) { $writer->writeString8($this->_owner, 1)->writeInt8($this->_rating); if ($this->_counter > 0xffffffff) { $writer->writeInt64BE($this->_counter); } else { if ($this->_counter > 0) { $writer->writeUInt32BE($this->_counter); } } }
/** * Writes the box data. * * @param HausDesign_Io_Writer $writer The writer object. * @return void */ protected function _writeData($writer) { $writer->writeUInt32BE($entryCount = count($this->_chunkOffsetTable)); for ($i = 1; $i <= $entryCount; $i++) { $writer->writeInt64BE($this->_chunkOffsetTable[$i]); } }