Package pyamf :: Module amf0 :: Class Context
[hide private]
[frames] | no frames]

Class Context

source code


I hold the AMF0 context for en/decoding streams.

AMF0 object references start at index 1.

Instance Methods [hide private]
 
clear(self)
Resets the context.
source code
 
_getObject(self, ref) source code
 
__copy__(self) source code
 
getAMF3ObjectReference(self, obj)
Gets a reference for an object.
source code
int
addAMF3Object(self, obj)
Adds an AMF3 reference to obj.
source code

Inherited from BaseContext: __init__, addObject, getClassAlias, getObject, getObjectReference

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

clear(self)

source code 

Resets the context.

The amf3_objs var keeps a list of objects that were encoded in AMF3.

Overrides: BaseContext.clear

__copy__(self)

source code 
Overrides: BaseContext.__copy__

getAMF3ObjectReference(self, obj)

source code 

Gets a reference for an object.

Raises:

addAMF3Object(self, obj)

source code 

Adds an AMF3 reference to obj.

Parameters:
  • obj (mixed) - The object to add to the context.
Returns: int
Reference to obj.