+
        	                     l   ^ RI t ^ RIHtHtHt ]! ]4      tR t ! R R4      t ! R R]]! ]4      4      t	 ! R R	]]! ]4      4      t
] P                  R
8X  d#   Rt]t ! R R]]	R7      t]t ! R R]]
R7      tR# ] P                  R8X  d#   Rt]t ! R R]]	R7      t]t ! R R]]
R7      tR# ]! R4      h)    N)Array	StructureUnionc                &   \        V \        4      '       d   \        V \        4      # \        V \        4      '       d'   \        V P                  4      V P                  ,          # \        V \        \        34      '       d   V # \        RV ,          4      h)zReturn 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
arrays and structures are supported.
z+This type does not support other endian: %s)hasattr_OTHER_ENDIANgetattr
isinstance_array_type_other_endian_type__length_
issubclassr   r   	TypeError)typs   &'/usr/lib64/python3.14/ctypes/_endian.pyr   r      sk     sM""sM**#{##SZZ(3<<77#	5)**

ACG
HH    c                   2   a a ] tR t^t oV 3R ltRtVtV ;t# )_swapped_metac                   < VR 8X  dL   . pV FA  pV^ ,          pV^,          pVR,          pVP                  V\        V4      3V,           4       KC  	  Tp\        SV `  W4       R# )_fields_:   NNN)appendr   super__setattr__)	selfattrnamevaluefieldsdescnamer   rest	__class__s	   &&&     r   r   _swapped_meta.__setattr__   sd    z!FAw1gBxt]3%784?@	 
 EH,r    )__name__
__module____qualname____firstlineno__r   __static_attributes____classdictcell____classcell__)r#   __classdict__s   @@r   r   r      s     	- 	-r   r   c                       ] tR t^"tRtR# )_swapped_struct_metar%   Nr&   r'   r(   r)   r*   r%   r   r   r/   r/   "   s    Dr   r/   c                       ] tR t^#tRtR# )_swapped_union_metar%   Nr0   r%   r   r   r2   r2   #   s    tr   r2   little__ctype_be__c                   "    ] tR t^0tRtRtRtRtR# )BigEndianStructurez$Structure with big endian byte orderNr%   r&   r'   r(   r)   __doc__	__slots___swappedbytes_r*   r%   r   r   r6   r6   0   s    2	r   r6   )	metaclassc                   "    ] tR t^7tRtRtRtRtR# )BigEndianUnionz Union with big endian byte orderNr%   r7   r%   r   r   r=   r=   7   s    .	r   r=   big__ctype_le__c                   "    ] tR t^AtRtRtRtRtR# )LittleEndianStructurez'Structure with little endian byte orderNr%   r7   r%   r   r   rA   rA   A   s    5	r   rA   c                   "    ] tR t^HtRtRtRtRtR# )LittleEndianUnionz#Union with little endian byte orderNr%   r7   r%   r   r   rC   rC   H   s    1	r   rC   zInvalid byteorder)sysctypesr   r   r   typer   r   r   r/   r2   	byteorderr   rA   r6   rC   r=   RuntimeErrorr%   r   r   <module>rI      s    
 * *5kI"
- 
- A=$y/ @ ;-e ; ==H"M%Y2F 
 *= 
 	]]e"M"	5I 
 NE-@  *
++r   