xdrlib
index
/usr/local/lib/python2.4/xdrlib.py
Module Docs

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

 
Modules
       
struct

 
Classes
       
exceptions.Exception
Error
ConversionError
Packer
Unpacker

 
class ConversionError(Error)
    
Method resolution order:
ConversionError
Error
exceptions.Exception

Methods inherited from Error:
__init__(self, msg)
__repr__(self)
__str__(self)

Methods inherited from exceptions.Exception:
__getitem__(...)

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

Methods inherited from exceptions.Exception:
__getitem__(...)

 
class Packer
    Pack various data representations into a buffer.
 
  Methods defined here:
__init__(self)
get_buf = get_buffer(self)
get_buffer(self)
pack_array(self, list, pack_item)
pack_bool(self, x)
pack_bytes = pack_string(self, s)
pack_double(self, x)
pack_enum = pack_uint(self, x)
pack_farray(self, n, list, pack_item)
pack_float(self, x)
pack_fopaque = pack_fstring(self, n, s)
pack_fstring(self, n, s)
pack_hyper = pack_uhyper(self, x)
pack_int = pack_uint(self, x)
pack_list(self, list, pack_item)
pack_opaque = 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.
 
  Methods defined here:
__init__(self, data)
done(self)
get_buffer(self)
get_position(self)
reset(self, data)
set_position(self, position)
unpack_array(self, unpack_item)
unpack_bool = unpack_int(self)
unpack_bytes = unpack_string(self)
unpack_double(self)
unpack_enum = unpack_int(self)
unpack_farray(self, n, unpack_item)
unpack_float(self)
unpack_fopaque = unpack_fstring(self, n)
unpack_fstring(self, n)
unpack_hyper(self)
unpack_int(self)
unpack_list(self, unpack_item)
unpack_opaque = unpack_string(self)
unpack_string(self)
unpack_uhyper(self)
unpack_uint(self)

 
Data
        __all__ = ['Error', 'Packer', 'Unpacker', 'ConversionError']