;
ะโ"Ic               @   sส   d  d l  Z  d  d l Te e d  Z d   Z Gd   d e e   Z e  j d k o) d Z	 e Z
 Gd	   d
 e d e Z nF e  j d k o) d Z	 e Z Gd   d e d e Z
 n e d   d S(   i    N(   u   *i   c          	   C   sd   y t  |  t  SWnL t k
 o@ t |   t k o t |  j  |  j St d |    Yn Xd S(   uๅ   Return the type with the 'other' byte order.  Simple types like
    c_int and so on already have __ctype_be__ and __ctype_le__
    attributes which contain the types, for more complicated types
    only arrays are supported.
    u+   This type does not support other endian: %sN(	   u   getattru   _OTHER_ENDIANu   AttributeErroru   typeu   _array_typeu   _other_endianu   _type_u   _length_u	   TypeError(   u   typ(    (    u+   /mit/python/lib/python3.0/ctypes/_endian.pyu   _other_endian   s    c                s   |  Ee  Z   f d    Z   S(   c                s   | d k ob g  } xO | D]G } | d } | d } | d d   } | j  | t |  f |  q W| } n t   j | |  d  S(   Nu   _fields_i    i   i   (   u   appendu   _other_endianu   superu   __setattr__(   u   selfu   attrnameu   valueu   fieldsu   descu   nameu   typu   rest(   u	   __class__(    u+   /mit/python/lib/python3.0/ctypes/_endian.pyu   __setattr__   s     

!
(   u   __name__u
   __module__u   __setattr__(   u
   __locals__(    (   u	   __class__u+   /mit/python/lib/python3.0/ctypes/_endian.pyu   _swapped_meta   s   
u   _swapped_metau   littleu   __ctype_be__c             B   s   |  Ee  Z d  Z d Z d S(   u$   Structure with big endian byte orderN(   u   __name__u
   __module__u   __doc__u   Noneu   _swappedbytes_(   u
   __locals__(    (    u+   /mit/python/lib/python3.0/ctypes/_endian.pyu   BigEndianStructure*   s   
u   BigEndianStructureu	   metaclassu   bigu   __ctype_le__c             B   s   |  Ee  Z d  Z d Z d S(   u'   Structure with little endian byte orderN(   u   __name__u
   __module__u   __doc__u   Noneu   _swappedbytes_(   u
   __locals__(    (    u+   /mit/python/lib/python3.0/ctypes/_endian.pyu   LittleEndianStructure2   s   
u   LittleEndianStructureu   Invalid byteorder(   u   sysu   ctypesu   typeu   c_intu   _array_typeu   _other_endianu	   Structureu   _swapped_metau	   byteorderu   _OTHER_ENDIANu   LittleEndianStructureu   BigEndianStructureu   RuntimeError(    (    (    u+   /mit/python/lib/python3.0/ctypes/_endian.pyu   <module>   s   
	