Home | Trees | Indices | Help |
|
---|
|
AMF3 implementation.
AMF3
is the default serialization for ActionScript 3.0 and provides various advantages over
AMF0, which is used for
ActionScript 1.0 and 2.0. It adds support for sending int
and uint
objects as integers and supports data types that
are available only in ActionScript 3.0, such as ByteArray and ArrayCollection.
Since: 0.1
|
|||
ObjectEncoding AMF object encodings. |
|||
DataOutput I am a StringIO type object containing byte data from
the AMF stream.
|
|||
DataInput I provide a set of methods for reading binary data with ActionScript 3.0. |
|||
ByteArray I am a StringIO type object containing byte data from
the AMF stream.
|
|||
ClassDefinition | |||
Context I hold the AMF3 context for en/decoding streams. |
|||
Decoder Decodes an AMF3 data stream. |
|||
Encoder Encodes an AMF3 data stream. |
|
|||
|
|||
BufferedByteStream |
|
|
|||
use_proxies_default = False If True encode/decode lists/tuples to ArrayCollections and dicts to ObjectProxy |
|||
TYPE_UNDEFINED =
The undefined type is represented by the undefined type marker. |
|||
TYPE_NULL =
The null type is represented by the null type marker. |
|||
TYPE_BOOL_FALSE =
The false type is represented by the false type marker and is used to encode a Boolean value of false .
|
|||
TYPE_BOOL_TRUE =
The true type is represented by the true type marker and is used to encode a Boolean value of true .
|
|||
TYPE_INTEGER =
In AMF 3 integers are serialized using a variable length signed 29-bit integer. |
|||
TYPE_NUMBER =
This type is used to encode an ActionScript Number or an ActionScript int of value greater than or equal to 2^28 or an
ActionScript uint of value greater than or equal to 2^29.
|
|||
TYPE_STRING =
ActionScript String values are represented using a single string type in AMF 3 - the concept of string and long string types from AMF 0 is not used. |
|||
TYPE_XML =
ActionScript 3.0 introduced a new XML type however the legacy XMLDocument type from ActionScript 1.0 and 2.0.is
retained in the language as flash.xml.XMLDocument .
|
|||
TYPE_DATE =
In AMF 3 an ActionScript Date is serialized simply as the number of milliseconds elapsed since the epoch of midnight, 1st Jan 1970 in the UTC time zone. |
|||
TYPE_ARRAY =
ActionScript Arrays are described based on the nature of their indices, i.e. |
|||
TYPE_OBJECT =
A single AMF 3 type handles ActionScript Objects and custom user classes. |
|||
TYPE_XMLSTRING =
ActionScript 3.0 introduces a new top-level XML class that supports E4X syntax. |
|||
TYPE_BYTEARRAY =
ActionScript 3.0 introduces the ByteArray type to hold an Array of bytes. |
|||
REFERENCE_BIT = 1 Reference bit. |
|||
MAX_29B_INT = 268435455 The maximum that can be represented by an signed 29 bit integer. |
|||
MIN_29B_INT = -268435456 The minimum that can be represented by an signed 29 bit integer. |
|||
ENCODED_INT_CACHE =
|
Imports: types, datetime, zlib, pyamf, util, ObjectProxy, ArrayCollection, set, encode_int, decode_int
|
A helper function to decode an AMF3 datastream.
|
A helper function to encode an element into AMF3 format.
|
|
TYPE_UNDEFINEDThe undefined type is represented by the undefined type marker. No further information is encoded for this value.
|
TYPE_NULLThe null type is represented by the null type marker. No further information is encoded for this value.
|
TYPE_BOOL_FALSEThe false type is represented by the false type marker and is used to
encode a Boolean value of
|
TYPE_BOOL_TRUEThe true type is represented by the true type marker and is used to
encode a Boolean value of
|
TYPE_INTEGERIn AMF 3 integers are serialized using a variable length signed 29-bit integer. See Also: Parsing Integers on OSFlash (external)
|
TYPE_NUMBERThis type is used to encode an ActionScript Number or an ActionScript
|
TYPE_STRINGActionScript String values are represented using a single string type in AMF 3 - the concept of string and long string types from AMF 0 is not used. Strings can be sent as a reference to a previously occurring String by using an index to the implicit string reference table. Strings are encoding using UTF-8 - however the header may either describe a string literal or a string reference.
|
TYPE_XMLActionScript 3.0 introduced a new XML type however the legacy
See Also: OSFlash documentation (external)
|
TYPE_DATEIn AMF 3 an ActionScript Date is serialized simply as the number of milliseconds elapsed since the epoch of midnight, 1st Jan 1970 in the UTC time zone. Local time zone information is not sent.
|
TYPE_ARRAYActionScript Arrays are described based on the nature of their indices, i.e. their type and how they are positioned in the Array.
|
TYPE_XMLSTRINGActionScript 3.0 introduces a new top-level XML class that supports E4X syntax. For serialization purposes the XML type needs to be flattened into a string representation. As with other strings in AMF, the content is encoded using UTF-8.
|
TYPE_BYTEARRAYActionScript 3.0 introduces the ByteArray type to hold an Array of bytes. AMF 3 serializes this type using a variable length encoding 29-bit integer for the byte-length prefix followed by the raw bytes of the ByteArray. See Also: Parsing ByteArrays on OSFlash (external)
|
ENCODED_INT_CACHE
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Sep 19 14:56:30 2009 | http://epydoc.sourceforge.net |