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:


See Also: ByteArray on Livedocs (external)

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 util.BufferedByteStream: __add__, at_eof, peek, read, remaining

Inherited from util.StringIOProxy: __len__, close, flush, getvalue, next, readline, readlines, seek, tell, truncate, write, writelines

Inherited from util.StringIOProxy (private): _get_len, _wrapped_class

Inherited from util.DataTypeMixIn: read_char, read_double, read_float, read_long, read_short, read_uchar, read_ulong, read_ushort, read_utf8_string, write_char, write_double, write_float, write_long, write_short, write_uchar, write_ulong, write_ushort, write_utf8_string

Inherited from util.DataTypeMixIn (private): _read

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, writeUnsignedInt

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

Class Variables [hide private]

Inherited from util.DataTypeMixIn: ENDIAN_BIG, ENDIAN_LITTLE, ENDIAN_NATIVE, ENDIAN_NETWORK, endian

Properties [hide private]

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:
  • buf - Initial byte stream.
Raises:
  • TypeError - Unable to coerce buf to StringIO.
Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)