Amfphp_Core_Amf_Deserializer takes the raw amf input stream and converts it PHP objects representing the data.
Located in /Amfphp/Core/Amf/Deserializer.php (line 19)
| Class | Description |
|---|---|
| AmfDeserializerWrapper | This class exports some internal (public) methods. This way, those methods can be tested separately. |
The current seek cursor of the stream
the Packet contained in the serialized data
The number of headers in the packet left to process
The number of Messages in the packet left to process
metaInfo
deserialize invokes this class to transform the raw data into valid object
Handle decoding of the variable-length representation which gives seven bits of value per serialized byte by using the high-order bit of each byte as a continuation flag.
this probably needs some refactoring. Leave as is for now... A.S.
readString
readArray turns an all numeric keyed actionscript array into a php array.
Taken from SabreAmf
readByte grabs the next byte from the data stream and returns it.
readCustomClass reads the amf content associated with a class instance which was registered with Object.registerClass. In order to preserve the class name an additional property is assigned to the object Amfphp_Core_Amf_Constants::FIELD_EXPLICIT_TYPE. This property will be overwritten if it existed within the class already.
readData is the main switch for mapping a type code to an actual implementation for deciphering it.
readDate reads a date from the amf Packet and returns the time in ms.
This method is still under development.
readDouble reads the floating point value from the bytes stream and properly orders the bytes depending on the system architecture.
readHeaders converts that header section of the amf Packet into php obects.
Header information typically contains meta data about the Packet.
readInt grabs the next 2 bytes and returns the next two bytes, shifted and combined to produce the resulting integer
readLong grabs the next 4 bytes shifts and combines them to produce an integer
readLongUTF first grabs the next 4 bytes which represent the string length.
Then it grabs the next (len) bytes of the resulting in the string
readMixedArray turns an array with numeric and string indexes into a php array
readMixedObject reads the name/value properties of the amf Packet and converts numeric looking keys to numeric keys
readObject reads the name/value properties of the amf Packet and converts them into their equivilent php representation
readReference replaces the old readFlushedSO. It treats where there
are references to other objects. Currently it does not resolve the object as this would involve a serious amount of overhead, unless you have a genius idea
readUTF first grabs the next 2 bytes which represent the string length.
Then it grabs the next (len) bytes of the resulting string.
Documentation generated on Thu, 24 Mar 2011 16:55:39 +0100 by phpDocumentor 1.4.3