Exemple #1
0
 /**
  * Process the raw data from a binary stream
  * 
  * @return  void
  */
 public function processData(Woops_Swf_Binary_Stream $stream)
 {
     // Checks if we have data, meaning we have a MD5-encrypted password
     if (!$stream->endOfStream()) {
         // Gets the MD5-encrypted password
         $this->_password = $stream->nullTerminatedString();
     }
 }
Exemple #2
0
 /**
  * Process the raw data from a binary stream
  * 
  * @return  void
  */
 public function processData(Woops_Swf_Binary_Stream $stream)
 {
     // Gets the label
     $this->_label = $stream->nullTerminatedString();
     // Checks if we have a named anchor
     if (!$stream->endOfStream()) {
         // Sets the named anchor flag
         $this->_namedAnchor = (bool) $stream->unsignedChar();
     }
 }
 /**
  * Process the raw data from a binary stream
  * 
  * @return  void
  */
 public function processData(Woops_Swf_Binary_Stream $stream)
 {
     // Resets the storage arrays
     $this->_offsets = array();
     $this->_scenes = array();
     $this->frameLabels = array();
     // Gets the number of scenes
     $sceneCount = $stream->encodedU32();
     // Process eachs scene
     for ($i = 0; $i < $sceneCount; $i++) {
         // Gets the frame offset and name for the current scene
         $this->_offsets[] = $stream->encodedU32();
         $this->_scenes[] = $stream->nullTerminatedString();
     }
     // Gets the number of frame labels
     $frameLabelCount = $stream->encodedU32();
     // Process each frame label
     for ($i = 0; $i < $frameLabelCount; $i++) {
         // Gets the frame number and label
         $this->_frameLabels[$stream->encodedU32()] = $stream->nullTerminatedString();
     }
 }
Exemple #4
0
 /**
  * Process the raw data from a binary stream
  * 
  * @return  void
  */
 public function processData(Woops_Swf_Binary_Stream $stream)
 {
     // Resets the symbols arrays
     $this->_symbols = array();
     $this->_symbolIds = array();
     // Gets the number of symbols
     $symbolsNum = $stream->littleEndianUnsignedShort();
     // Process each symbols
     for ($i = 0; $i < $symbolsNum; $i++) {
         // Gets the symbol ID
         $id = $stream->littleEndianUnsignedShort();
         // Gets the symbol name
         $name = $stream->nullTerminatedString();
         // Stores the symbol
         $this->_symbols[$id] = $name;
         $this->_symbolIds[] = $id;
     }
 }
Exemple #5
0
 /**
  * Process the raw data from a binary stream
  * 
  * @return  void
  */
 public function processData(Woops_Swf_Binary_Stream $stream)
 {
     $this->_xml = $stream->nullTerminatedString();
 }