Package pyamf :: Module amf3 :: Class ByteArray |
[hide private]
[frames] | no frames]

# Class ByteArray

source code

I am a `StringIO` type object containing byte data from the AMF stream. ActionScript 3.0 introduced the `flash.utils.ByteArray` class to support the manipulation of raw data in the form of an Array of bytes.

Supports `zlib` compression.

Possible uses of the `ByteArray` class:

- Creating a custom protocol to connect to a client.
- Writing your own AMF/Remoting packet.
- Optimizing the size of your data by using custom data types.

See Also: ByteArray on Livedocs (external)

Nested Classes | [hide private]
| __amf__

Instance Methods | [hide private]
__init__(self, *args, **kwargs) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code
__cmp__(self, other) | source code
__str__(self) str(x) | source code
compress(self) Forces compression of the underlying stream. | source code
Inherited from `cpyamf.util.BufferedByteStream`: `__add__`, `__len__`, `__new__`, `__radd__`, `append`, `at_eof`, `close`, `consume`, `flush`, `getvalue`, `peek`, `read`, `read_24bit_int`, `read_24bit_uint`, `read_char`, `read_double`, `read_float`, `read_long`, `read_short`, `read_uchar`, `read_ulong`, `read_ushort`, `read_utf8_string`, `remaining`, `seek`, `tell`, `truncate`, `write`, `write_24bit_int`, `write_24bit_uint`, `write_char`, `write_double`, `write_float`, `write_long`, `write_short`, `write_uchar`, `write_ulong`, `write_ushort`, `write_utf8_string` Inherited from `DataInput`: `readBoolean`, `readByte`, `readDouble`, `readFloat`, `readInt`, `readMultiByte`, `readObject`, `readShort`, `readUTF`, `readUTFBytes`, `readUnsignedByte`, `readUnsignedInt`, `readUnsignedShort` Inherited from `DataOutput`: `writeBoolean`, `writeByte`, `writeDouble`, `writeFloat`, `writeInt`, `writeMultiByte`, `writeObject`, `writeShort`, `writeUTF`, `writeUTFBytes`, `writeUnsignedByte`, `writeUnsignedInt`, `writeUnsignedShort` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`

Properties | [hide private]
Inherited from `cpyamf.util.BufferedByteStream`: `endian` Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, *args, **kwargs) (Constructor) | source code
x.__init__(...) initializes x; see x.__class__.__doc__ for signature Parameters: `decoder` - AMF3 decoder containing the stream. Overrides: object.__init__ (inherited documentation)

### __str__(self) (Informal representation operator) | source code
str(x) Overrides: object.__str__ (inherited documentation)