Home | Trees | Indices | Help |
|
---|
|
AMF0 implementation.
AMF0
supports the basic data types used for the
NetConnection, NetStream, LocalConnection, SharedObjects and other
classes in the Adobe Flash Player.
Since: 0.1
|
|||
Context I hold the AMF0 context for en/decoding streams. |
|||
Decoder Decodes an AMF0 stream. |
|||
Encoder Encodes an AMF0 stream. |
|||
RecordSet I represent the RecordSet class used in Adobe Flash
Remoting to hold (amongst other things) SQL records.
|
|
|||
|
|||
StringIO
|
|
||
|
|||
|
|
|||
TYPE_NUMBER =
Represented as 9 bytes: 1 byte for 0×00 and 8 bytes a
double representing the value of the number.
|
|||
TYPE_BOOL =
Represented as 2 bytes: 1 byte for 0×01 and a second,
0×00 for False , 0×01 for
True .
|
|||
TYPE_STRING =
Represented as 3 bytes + len(String): 1 byte 0×02 , then
a UTF8 string, including the top two bytes representing string length
as a int .
|
|||
TYPE_OBJECT =
Represented as 1 byte, 0×03 , then pairs of UTF8 string,
the key, and an AMF element, ended by three bytes, 0×00
0×00 0×09 .
|
|||
TYPE_MOVIECLIP =
MovieClip does not seem to be supported by Remoting. |
|||
TYPE_NULL =
1 single byte, 0×05 indicates null.
|
|||
TYPE_UNDEFINED =
1 single byte, 0×06 indicates null.
|
|||
TYPE_REFERENCE =
When an ActionScript object refers to itself, such this.self =
this , or when objects are repeated within the same scope (for
example, as the two parameters of the same function called), a code
of 0×07 and an int , the reference number,
are written.
|
|||
TYPE_MIXEDARRAY =
A MixedArray is indicated by code 0×08 , then a Long
representing the highest numeric index in the array, or 0 if there
are none or they are all negative.
|
|||
TYPE_OBJECTTERM =
|
|||
TYPE_ARRAY =
An array is indicated by 0x0A , then a Long for array
length, then the array elements themselves.
|
|||
TYPE_DATE =
Date is represented as 00x0B , then a double, then an
int .
|
|||
TYPE_LONGSTRING =
LongString is reserved for strings larger then 2^16 characters long. |
|||
TYPE_UNSUPPORTED =
Trying to send values which don’t make sense, such as prototypes, functions, built-in objects, etc. |
|||
TYPE_RECORDSET =
Remoting Server -> Client only. |
|||
TYPE_XML =
The XML element is indicated by 00x0F and followed by a
LongUTF containing the string representation of the XML object.
|
|||
TYPE_TYPEDOBJECT =
A typed object is indicated by 0×10 , then a UTF string
indicating class name, and then the same structure as a normal
0×03 Object.
|
|||
TYPE_AMF3 =
An AMF message sent from an AVM+ client such as the Flash Player 9 may break out into AMF3 mode. |
Imports: datetime, types, copy, pyamf, util
|
A helper function to encode an element into the AMF0 format.
|
|
TYPE_MOVIECLIPMovieClip does not seem to be supported by Remoting. It may be used by other AMF clients such as SharedObjects.
|
TYPE_MIXEDARRAYA MixedArray is indicated by code
|
TYPE_OBJECTTERMSee Also: TYPE_OBJECT
|
TYPE_ARRAYAn array is indicated by
|
TYPE_DATEDate is represented as
|
TYPE_LONGSTRINGLongString is reserved for strings larger then 2^16 characters long. It is represented as
|
TYPE_UNSUPPORTEDTrying to send values which don’t make sense, such as prototypes,
functions, built-in objects, etc. will be indicated by a single
|
TYPE_RECORDSETRemoting Server -> Client only.
|
TYPE_XMLThe XML element is indicated by
|
TYPE_TYPEDOBJECTA typed object is indicated by
|
TYPE_AMF3An AMF message sent from an AVM+ client such as the Flash Player 9 may break out into AMF3 mode. In this case the next byte will be the AMF3 type code and the data will be in AMF3 format until the decoded object reaches it’s logical conclusion (for example, an object has no more keys).
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Sep 19 14:56:30 2009 | http://epydoc.sourceforge.net |