Your IP : 3.145.2.6
U
e5d.� �
@ s> d dl Z d dlZd dlZdddgZG dd� de�ZdZdd� Zd d
� Zdd� Z d
d� Z
dd� ZdZdd� Z
dd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd d lmZ d d!lmZ ed"d#�Zd$ej_d%ej_d&ej_d'ej_d(ej_d)ej_G d*d+� d+�Z G d,d-� d-�Z!d@d.d�Z"dAd/d�Z#e$d0k�r:d dl%Z%e%j&d1d� �sJe%j&�'d2� e%j&d1 Z(e"e(d3���Z)e*d4e(� e*d5e)�+� � e*d6e)�,� � e*d7e)�-� � e*d8e)�.� � e*d9e)�/� � e*d:e)�0� � e%j&d;d� �r0e%j&d; Z1e*d<e1� e"e1d=��6Z2e2�3e)�4� � e)�5d>�Z6e6�s�qe2�7e6� �q�W 5 Q R X e*d?� W 5 Q R X dS )B� N�Error�open�openfpc @ s e Zd ZdS )r N)�__name__�
__module__�__qualname__� r r �/usr/lib64/python3.8/aifc.pyr � s l @Q E c C s: zt �d| �d��d W S t jk
r4 td �Y nX d S )N�>l� r ��structZunpack�read�error�EOFError��filer r r �
_read_long� s r c C s: zt �d| �d��d W S t jk
r4 td �Y nX d S )N�>Lr r r r r r r �_read_ulong� s r c C s: zt �d| �d��d W S t jk
r4 td �Y nX d S )N�>h� r r r r r r �_read_short� s r c C s: zt �d| �d��d W S t jk
r4 td �Y nX d S )N�>Hr r r r r r r �_read_ushort� s r c C s@ t | �d��}|dkrd}n
| �|�}|d@ dkr<| �d�}|S )N� r � )�ordr )r �length�data�dummyr r r �_read_string� s
r! g�����c C s� t | �}d}|dk r d}|d }t| �}t| �}|| krN| krNdkrXn nd} n0|dkrft} n"|d }|d | td |d
� } || S )Nr r ���� � g � i�? l g @�? )r r � _HUGE_VAL�pow)�f�expon�sign�himant�lomantr r r �_read_float� s "r- c C s | � t�d|�� d S )Nr ��writer
�pack�r( �xr r r �_write_short� s r3 c C s | � t�d|�� d S )Nr r. r1 r r r �
_write_ushort� s r4 c C s | � t�d|�� d S )Nr
r. r1 r r r �_write_long� s r5 c C s | � t�d|�� d S )Nr r. r1 r r r �_write_ulong� s r6 c C sR t |�dkrtd��| �t�dt |��� | �|� t |�d@ dkrN| �d� d S )N� z%string exceeds maximum pstring length�Br r � )�len�
ValueErrorr/ r
r0 )r( �sr r r �
_write_string� s
r= c C s� dd l }|dk rd}|d }nd}|dkr8d}d}d}n�|�|�\}}|dks^|dks^||krp|dB }d}d}nh|d }|dk r�|�||�}d}||B }|�|d�}|�|�}t|�}|�|| d�}|�|�}t|�}t| |� t| |� t| |� d S ) Nr r# r"