Ñò §ÚêLc @ s´ d Z d d k Z y d d k l Z Wn# e j o d d k l Z n Xd d d d g Z d e f d „ ƒ YZ d e f d „ ƒ YZ d d d „ ƒ YZ d d d „ ƒ YZ d S( sR Implements (a subset of) Sun XDR -- eXternal Data Representation. See: RFC 1014 iÿÿÿÿN( t StringIOt Errort Packert Unpackert ConversionErrorc B s) e Z d Z d „ Z d „ Z d „ Z RS( s¸ Exception class for this module. Use: except xdrlib.Error, var: # var has the Error instance for the exception Public ivars: msg -- contains the message c C s | | _ d S( N( t msg( t selfR ( ( s /usr/lib64/python2.6/xdrlib.pyt __init__ s c C s t | i ƒ S( N( t reprR ( R ( ( s /usr/lib64/python2.6/xdrlib.pyt __repr__ s c C s t | i ƒ S( N( t strR ( R ( ( s /usr/lib64/python2.6/xdrlib.pyt __str__ s ( t __name__t __module__t __doc__R R R ( ( ( s /usr/lib64/python2.6/xdrlib.pyR s c B s e Z RS( ( R R ( ( ( s /usr/lib64/python2.6/xdrlib.pyR " s c B s e Z d Z d „ Z d „ Z d „ Z e Z d „ Z e Z e Z d „ Z d „ Z e Z d „ Z d „ Z d „ Z e Z d „ Z e Z e Z d „ Z d „ Z d „ Z RS( s0 Pack various data representations into a buffer.c C s | i ƒ d S( N( t reset( R ( ( s /usr/lib64/python2.6/xdrlib.pyR * s c C s t ƒ | _ d S( N( t _StringIOt _Packer__buf( R ( ( s /usr/lib64/python2.6/xdrlib.pyR - s c C s | i i ƒ S( N( R t getvalue( R ( ( s /usr/lib64/python2.6/xdrlib.pyt get_buffer0 s c C s | i i t i d | ƒ ƒ d S( Ns >L( R t writet structt pack( R t x( ( s /usr/lib64/python2.6/xdrlib.pyt pack_uint5 s c C s/ | o | i i d ƒ n | i i d ƒ d S( Nt t ( R R ( R R ( ( s /usr/lib64/python2.6/xdrlib.pyt pack_bool; s c C s* | i | d ?d @ƒ | i | d @ƒ d S( Ni l ÿÿ ( R ( R R ( ( s /usr/lib64/python2.6/xdrlib.pyt pack_uhyper? s c C sH y | i i t i d | ƒ ƒ Wn! t i j o } t | ‚ n Xd S( Ns >f( R R R R t errorR ( R R R ( ( s /usr/lib64/python2.6/xdrlib.pyt pack_floatE s c C sH y | i i t i d | ƒ ƒ Wn! t i j o } t | ‚ n Xd S( Ns >d( R R R R R R ( R R R ( ( s /usr/lib64/python2.6/xdrlib.pyt pack_doubleJ s c C sb | d j o t d ‚ n | | } | d d d } | | t | ƒ d } | i i | ƒ d S( Ni s fstring size must be nonnegativei i t ( t ValueErrort lenR R ( R t nt st data( ( s /usr/lib64/python2.6/xdrlib.pyt pack_fstringO s c C s- t | ƒ } | i | ƒ | i | | ƒ d S( N( R" R R&