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)

Nested Classes [hide private]
  __amf__
Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
readObject(self, *args, **kwargs)
Reads an object from the data stream.
source code
 
writeObject(self, *args, **kwargs)
Writes an object to data stream in AMF serialized format.
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__, flush, peek, read, read_double, read_float, write, write_char, write_double, write_short, write_ulong, write_ushort

Inherited from cpyamf.util.cBufferedByteStream: __nonzero__, append, at_eof, consume, getvalue, read_24bit_int, read_24bit_uint, read_char, read_long, read_short, read_uchar, read_ulong, read_ushort, read_utf8_string, remaining, seek, tell, truncate, write_24bit_int, write_24bit_uint, write_float, write_long, write_uchar, write_utf8_string

Inherited from DataInput: readBoolean, readByte, readDouble, readFloat, readInt, readMultiByte, readShort, readUTF, readUTFBytes, readUnsignedByte, readUnsignedInt, readUnsignedShort

Inherited from DataOutput: writeBoolean, writeByte, writeDouble, writeFloat, writeInt, writeMultiByte, writeShort, writeUTF, writeUTFBytes, writeUnsignedByte, writeUnsignedInt, writeUnsignedShort

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

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 help(type(x)) for signature

Parameters:
  • decoder - AMF3 decoder containing the stream.
Overrides: object.__init__
(inherited documentation)

readObject(self, *args, **kwargs)

source code 

Reads an object from the data stream.

Returns:
The deserialized object.
Overrides: DataInput.readObject
(inherited documentation)

writeObject(self, *args, **kwargs)

source code 

Writes an object to data stream in AMF serialized format.

Parameters:
  • value - The object to be serialized.
Overrides: DataOutput.writeObject
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)