/** * Process the raw data from a binary stream * * @return void */ public function processData(Woops_Swf_Binary_Stream $stream) { // Gets the shape ID $this->_shapeId = $stream->littleEndianUnsignedShort(); // Processes the rectangle data $this->_shapeBounds->processData($stream); }
/** * Process the raw data from a binary stream * * @return void */ public function processData(Woops_Swf_Binary_Stream $stream) { // Gets the character ID $this->_characterId = $stream->littleEndianUnsignedShort(); // Processes the rectangle data $this->_splitter->processData($stream); }
/** * Process the raw data from a binary stream * * @return void */ public function processData(Woops_Swf_Binary_Stream $stream) { $this->_maxRecursionDepth = $stream->littleEndianUnsignedShort(); $this->_scriptTimeoutSeconds = $stream->littleEndianUnsignedShort(); }
/** * 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; } }
/** * Process the raw data from a binary stream * * @return void */ public function processData(Woops_Swf_Binary_Stream $stream) { // Gets the sprite ID and the frame count $this->_spriteId = $stream->littleEndianUnsignedShort(); $this->_frameCount = $stream->littleEndianUnsignedShort(); // Resets the tag array $this->_tags = array(); // Process the tags while (!$stream->endOfStream()) { // Gets thge tag record header $tagHeader = $stream->littleEndianUnsignedShort(); // Gets the tag type $tagType = $tagHeader >> 6; // Gets the tag length $tagLength = $tagHeader & 0x3f; // Checks for a 32bit length if ($tagLength === 0x3f) { // Tag is long $tagLength = $stream->littleEndianUnsignedLong(); } // Creates the tag $tag = $this->newTag($tagType); // Creates a binary stream with the tag data $tagData = new Woops_Swf_Binary_Stream($stream->read($tagLength)); // Processes the tag data $tag->processData($tagData); } }