Ë
    âQ(h¿  ã                   ór   — d Z ddlZg d¢Zej                  dk(  Zexr dxs dZexr dxs dZddd	d
dœZd„ Zy)zø Byteorder utilities for system - numpy byteorder encoding

Converts a variety of string codes for little endian, big endian,
native byte order and swapped byte order to explicit NumPy endian
codes - one of '<' (little endian) or '>' (big endian)

é    N)ÚaliasesÚnative_codeÚswapped_codeÚ	sys_is_leÚto_numpy_codeÚlittleú<ú>)r   r	   ÚlÚle)Úbigr
   ÚbÚbe)Únativeú=)ÚswappedÚS)r   r   r   r   c                 óÂ   — | j                  «       } | €t        S | t        d   v ry| t        d   v ry| t        d   v rt        S | t        d   v rt        S t	        d| › �«      ‚)aˆ  
    Convert various order codings to NumPy format.

    Parameters
    ----------
    code : str
        The code to convert. It is converted to lower case before parsing.
        Legal values are:
        'little', 'big', 'l', 'b', 'le', 'be', '<', '>', 'native', '=',
        'swapped', 's'.

    Returns
    -------
    out_code : {'<', '>'}
        Here '<' is the numpy dtype code for little endian,
        and '>' is the code for big endian.

    Examples
    --------
    >>> import sys
    >>> from scipy.io.matlab._byteordercodes import to_numpy_code
    >>> sys_is_le = (sys.byteorder == 'little')
    >>> sys_is_le
    True
    >>> to_numpy_code('big')
    '>'
    >>> to_numpy_code('little')
    '<'
    >>> nc = to_numpy_code('native')
    >>> nc == '<' if sys_is_le else nc == '>'
    True
    >>> sc = to_numpy_code('swapped')
    >>> sc == '>' if sys_is_le else sc == '<'
    True

    r   r	   r   r
   r   r   zWe cannot handle byte order )Úlowerr   r   r   Ú
ValueError)Úcodes    ú]/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/scipy/io/matlab/_byteordercodes.pyr   r      sw   € ðJ �:‰:‹<€DØ€|ÜÐØŒw�xÑ Ñ ØØ	”˜‘Ñ	ØØ	”˜Ñ"Ñ	"ÜÐØ	”˜Ñ#Ñ	#ÜÐäØ*¨4¨&Ð1ó3ð 	3ó    )	Ú__doc__ÚsysÚ__all__Ú	byteorderr   r   r   r   r   © r   r   ú<module>r      s\   ðñó ò€ð
 �M‰M˜XÑ%€	ØÒ˜CÒ& 3€ØÒ ˜SÒ' C€à/Ø)Ø$Ø&ñ(€ó23r   