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]
__init__(self, **kwargs) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code
clear(self) Clears the context. | source code
hasAMF3ObjectReference(self, obj) Gets a reference for an object. | source code
`int` |
addAMF3Object(self, obj) Adds an AMF3 reference to `obj`. | source code
__copy__(self) | source code
Inherited from `BaseContext`: `addObject`, `getClassAlias`, `getObject`, `getObjectReference` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Instance Variables | [hide private]
util.IndexedCollection | amf3_objs A list of objects that have been decoded in AMF3.
Inherited from `BaseContext`: `class_aliases`, `exceptions`, `objects`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, **kwargs) (Constructor) | source code
x.__init__(...) initializes x; see x.__class__.__doc__ for signature Overrides: object.__init__ (inherited documentation)

### clear(self) | source code
Clears the context. Overrides: BaseContext.clear

### hasAMF3ObjectReference(self, obj) | source code
Gets a reference for an object. Raises: `ReferenceError` - Unknown AMF3 object reference.

### 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`.

### __copy__(self) | source code
Overrides: BaseContext.__copy__