//usr/lib64/lib64//lib64/lib64/python2.7/ó
ÙœSec @ s² d Z d d l Z y d d l m Z Wn! e k
rI d d l m 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.7/xdrlib.pyt __init__ s c C s
t | j ƒ S( N( t reprR ( R ( ( s /usr/lib64/python2.7/xdrlib.pyt __repr__ s c C s
t | j ƒ S( N( t strR ( R ( ( s /usr/lib64/python2.7/xdrlib.pyt __str__ s ( t __name__t
__module__t __doc__R R R ( ( ( s /usr/lib64/python2.7/xdrlib.pyR s c B s e Z RS( ( R R
( ( ( s /usr/lib64/python2.7/xdrlib.pyR " s c B s° e Z d Z d „ Z d „ Z d „ Z e Z d „ Z d „ 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 | j ƒ d S( N( t reset( R ( ( s /usr/lib64/python2.7/xdrlib.pyR * s c C s t ƒ | _ d S( N( t _StringIOt _Packer__buf( R ( ( s /usr/lib64/python2.7/xdrlib.pyR - s c C s
| j j ƒ S( N( R t getvalue( R ( ( s /usr/lib64/python2.7/xdrlib.pyt
get_buffer0 s c C s | j j t j d | ƒ ƒ d S( Ns >L( R t writet structt pack( R t x( ( s /usr/lib64/python2.7/xdrlib.pyt pack_uint5 s c C s | j j t j d | ƒ ƒ d S( Ns >l( R R R R ( R R ( ( s /usr/lib64/python2.7/xdrlib.pyt pack_int8 s c C s- | r | j j d ƒ n | j j d ƒ d S( Nt t ( R R ( R R ( ( s /usr/lib64/python2.7/xdrlib.pyt pack_bool= s c C s* | j | d ?d @ƒ | j | d @ƒ d S( Ni l ÿÿ ( R ( R R ( ( s /usr/lib64/python2.7/xdrlib.pyt pack_uhyperA s c C sF y | j j t j d | ƒ ƒ Wn t j k
rA } t | ‚ n Xd S( Ns >f( R R R R t errorR ( R R R ( ( s /usr/lib64/python2.7/xdrlib.pyt
pack_floatG s c C sF y | j j t j d | ƒ ƒ Wn t j k
rA } t | ‚ n Xd S( Ns >d( R R R R R R ( R R R ( ( s /usr/lib64/python2.7/xdrlib.pyt pack_doubleL s c C s` | d k r t d ‚ n | | } | d d d } | | t | ƒ d } | j j | ƒ d S( Ni s fstring size must be nonnegativei i t ( t
ValueErrort lenR R ( R t nt st data( ( s /usr/lib64/python2.7/xdrlib.pyt pack_fstringQ s
c C s- t | ƒ } | j | ƒ | j | | ƒ d S( N( R# R R' ( R R% R$ ( ( s /usr/lib64/python2.7/xdrlib.pyt pack_string[ s
c C s9 x% | D] } | j d ƒ | | ƒ q W| j d ƒ d S( Ni i ( R ( R t listt pack_itemt item( ( s /usr/lib64/python2.7/xdrlib.pyt pack_listc s
c C s= t | ƒ | k r t d ‚ n x | D] } | | ƒ q% Wd S( Ns wrong array size( R# R" ( R R$ R) R* R+ ( ( s /usr/lib64/python2.7/xdrlib.pyt pack_farrayi s
c C s0 t | ƒ } | j | ƒ | j | | | ƒ d S( N( R# R R- ( R R) R* R$ ( ( s /usr/lib64/python2.7/xdrlib.pyt
pack_arrayo s
( R R
R R R R t get_bufR R t pack_enumR R t
pack_hyperR R R' t pack_fopaqueR( t pack_opaquet
pack_bytesR, R- R. ( ( ( s /usr/lib64/python2.7/xdrlib.pyR ' s* c B sÈ e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
e
Z d „ Z d
„ Z
d „ Z d „ Z d
„ Z d „ Z e Z d „ Z e Z e Z d „ Z d „ Z d „ Z RS( s; Unpacks various data representations from the given buffer.c C s | j | ƒ d S( N( R ( R R&