xdrlib
index
/usr/lib/python2.2/xdrlib.py

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

 
Modules
            
struct
 
Classes
            
Error
ConversionError
Packer
Unpacker
 
class ConversionError(Error)
       
   Data and non-method functions defined here:
__doc__ = None
__module__ = 'xdrlib'

Methods inherited from Error:
__init__(self, msg)
__repr__(self)
__str__(self)
 
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
 
   Methods defined here:
__init__(self, msg)
__repr__(self)
__str__(self)

Data and non-method functions defined here:
__doc__ = 'Exception class for this module. Use:\n\n ex...rs:\n msg -- contains the message\n\n '
__module__ = 'xdrlib'
 
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)

Data and non-method functions defined here:
__doc__ = 'Pack various data representations into a buffer.'
__module__ = 'xdrlib'
 
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 and non-method functions defined here:
__doc__ = 'Unpacks various data representations from the given buffer.'
__module__ = 'xdrlib'
 
Functions
            
_StringIO = StringIO(...)
StringIO([s]) -- Return a StringIO-like stream for reading or writing
_test()
# test suite
 
Data
             __all__ = ['Error', 'Packer', 'Unpacker', 'ConversionError']
__file__ = '/usr/lib/python2.2/xdrlib.pyc'
__name__ = 'xdrlib'