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

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

 
Modules
            
struct

 
Classes
            
Error
ConversionError
Packer
Unpacker

 
class ConversionError(Error)
       
  
__init__(self, msg) from Error
__repr__(self) from Error
__str__(self) from 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_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.
 
  
__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)

 
Functions
            
_test()
# test suite

 
Data
             __file__ = '/usr/lib/python1.6/xdrlib.pyc'
__name__ = 'xdrlib'