xdrlib
index
/usr/lib/python1.5/xdrlib.py
 

Implements (a subset of) Sun XDR -- eXternal Data Representation.
 
See: RFC 1014

   
Modules
                        
struct

   
Classes
                        
Error
ConversionError
Packer
Unpacker

   
class ConversionError(Error)
              

   
class Error
            Exception class for this module. Use:
 
except xdrlib.Error, var:
    # var has the Error instance for the exception
 
Public ivars:
    msg -- contains the message
              
__init__(self, msg)
__repr__(self)
__str__(self)

   
class Packer
            Pack various data representations into a buffer.
              
__init__(self)
get_buffer(self)
get_buffer(self)
pack_array(self, list, pack_item)
pack_bool(self, x)
pack_string(self, s)
pack_double(self, x)
pack_uint(self, x)
pack_farray(self, n, list, pack_item)
pack_float(self, x)
pack_fstring(self, n, s)
pack_fstring(self, n, s)
pack_uhyper(self, x)
pack_uint(self, x)
pack_list(self, list, pack_item)
pack_string(self, s)
pack_string(self, s)
pack_uhyper(self, x)
pack_uint(self, x)
reset(self)

   
class Unpacker
            Unpacks various data representations from the given buffer.
              
__init__(self, data)
done(self)
get_buffer(self)
get_position(self)
reset(self, data)
set_position(self, position)
unpack_array(self, unpack_item)
unpack_int(self)
unpack_string(self)
unpack_double(self)
unpack_int(self)
unpack_farray(self, n, unpack_item)
unpack_float(self)
unpack_fstring(self, n)
unpack_fstring(self, n)
unpack_hyper(self)
unpack_int(self)
unpack_list(self, unpack_item)
unpack_string(self)
unpack_string(self)
unpack_uhyper(self)
unpack_uint(self)