Package qpid :: Module codec010 :: Class Codec
[frames] | no frames]

Class Codec

packer.Packer --+
                |
               Codec
Known Subclasses:

Instance Methods
 
encoding(self, obj)
 
read_primitive(self, type)
 
write_primitive(self, type, v)
 
read_void(self)
 
write_void(self, v)
 
read_bit(self)
 
write_bit(self, b)
 
read_uint8(self)
 
write_uint8(self, n)
 
read_int8(self)
 
write_int8(self, n)
 
read_char(self)
 
write_char(self, c)
 
read_boolean(self)
 
write_boolean(self, b)
 
read_uint16(self)
 
write_uint16(self, n)
 
read_int16(self)
 
write_int16(self, n)
 
read_uint32(self)
 
write_uint32(self, n)
 
read_int32(self)
 
write_int32(self, n)
 
read_float(self)
 
write_float(self, f)
 
read_sequence_no(self)
 
write_sequence_no(self, n)
 
read_uint64(self)
 
write_uint64(self, n)
 
read_int64(self)
 
write_int64(self, n)
 
read_datetime(self)
 
write_datetime(self, t)
 
read_double(self)
 
write_double(self, d)
 
read_vbin8(self)
 
write_vbin8(self, b)
 
read_str8(self)
 
write_str8(self, s)
 
read_str16(self)
 
write_str16(self, s)
 
read_str16_latin(self)
 
write_str16_latin(self, s)
 
read_vbin16(self)
 
write_vbin16(self, b)
 
read_sequence_set(self)
 
write_sequence_set(self, ss)
 
read_vbin32(self)
 
write_vbin32(self, b)
 
read_map(self)
 
write_map(self, m)
 
read_array(self)
 
write_array(self, a)
 
read_list(self)
 
write_list(self, l)
 
read_struct32(self)
 
write_struct32(self, value)
 
read_compound(self, cls)
 
write_compound(self, op)
 
read_fields(self, op)
 
write_fields(self, op)
 
read_size(self, width)
 
write_size(self, width, n)
 
read_uuid(self)
 
write_uuid(self, s)
 
read_bin128(self)
 
write_bin128(self, b)

Inherited from packer.Packer: pack, read, unpack, write

Class Variables
  ENCODINGS = {unicode: direct("str16"), str: map_str, buffer: d...
Class Variable Details

ENCODINGS

Value:
{unicode: direct("str16"), str: map_str, buffer: direct("vbin32"), int\
: direct("int64"), long: direct("int64"), float: direct("double"), Non\
e.__class__: direct("void"), list: direct("list"), tuple: direct("list\
"), dict: direct("map"), timestamp: direct("datetime"), datetime.datet\
ime: direct("datetime"), UUID: direct("uuid"), Compound: direct("struc\
t32")}