%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/dns/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/dns/__pycache__/wire.cpython-312.pyc

�

5��e��L�ddlZddlZddlmZmZmZddlZddlZGd�d�Z	y)�N)�Iterator�Optional�Tuplec��eZdZddedefd�Zdefd�Zdedefd�Zddedefd	�Zdefd
�Z	defd�Z
defd�Zdefd
�Zdefd�Z
dedefd�Zddedddfd�Zdeddfd�Zej*dedefd��Zej*defd��Zy)�Parser�wire�currentc��||_d|_t|j�|_|r|j	|�||_y�Nr)rr	�len�end�seek�furthest)�selfrr	s   �*/usr/lib/python3/dist-packages/dns/wire.py�__init__zParser.__init__s5����	�����t�y�y�>�����I�I�g����
��returnc�4�|j|jz
S�N)r
r	�rs r�	remainingzParser.remainings���x�x�$�,�,�&�&r�sizec�.�|dk\sJ�||j�kDrtjj�|j|j
|j
|z}|xj
|z
c_t
|j|j
�|_|Sr)r�dns�	exception�	FormErrorrr	�maxr)rr�outputs   r�	get_byteszParser.get_bytesss���q�y��y��$�.�.�"�"��-�-�)�)�)����4�<�<�$�,�,��*=�>���������D�M�M�4�<�<�8��
��
r�length_sizec�n�tj|j|�d�}|j|�S)N�big��int�
from_bytesr )rr!�lengths   r�get_counted_byteszParser.get_counted_bytes s*��������{� ;�U�C���~�~�f�%�%rc�@�|j|j��Sr)r rrs r�
get_remainingzParser.get_remaining$s���~�~�d�n�n�.�/�/rc�R�tjd|jd��dS)Nz!B�r��struct�unpackr rs r�	get_uint8zParser.get_uint8'�!���}�}�T�4�>�>�!�#4�5�a�8�8rc�R�tjd|jd��dS)Nz!H�rr-rs r�
get_uint16zParser.get_uint16*r1rc�R�tjd|jd��dS)Nz!I�rr-rs r�
get_uint32zParser.get_uint32-r1rc�L�tj|jd�d�S)N�r#r$rs r�
get_uint48zParser.get_uint480s���~�~�d�n�n�Q�/��7�7r�formatc�r�tj||jtj|���Sr)r.r/r �calcsize)rr;s  r�
get_structzParser.get_struct3s%���}�}�V�T�^�^�F�O�O�F�4K�%L�M�MrN�originz
dns.name.Namec�j�tjj|�}|r|j|�}|Sr)r�name�from_wire_parser�
relativize)rr?rAs   r�get_namezParser.get_name6s,���x�x�(�(��.����?�?�6�*�D��r�wherec�n�|dks||jkDrtjj�||_yr)r
rrrr	)rrEs  rrzParser.seek<s-���1�9�����(��-�-�)�)�)���rc#�LK�|dk\sJ�||j�kDrtjj�|j}	|j
|z|_d��|j
|jk7rtjj�	||_y#||_wxYw�wr)rrrrr
r	)rr�	saved_ends   r�restrict_tozParser.restrict_toCs������q�y��y��$�.�.�"�"��-�-�)�)�)��H�H�	�		!��|�|�d�*�D�H���|�|�t�x�x�'��m�m�-�-�-�(�!�D�H��y�D�H�s�AB$�AB�B$�	B!�!B$c#�dK�	d��|j|_y#|j|_wxYw�wr)rr	rs r�restore_furthestzParser.restore_furthestTs&����	)��J��=�=�D�L��4�=�=�D�L�s�0��0�-�0)r)r,r)�__name__�
__module__�__qualname__�bytesr%rrr r(r*r0r4r7r:�strrr>rrDr�
contextlib�contextmanagerrrIrK�rrrrs
�� �U� �S� �'�3�'��c��e��&�S�&��&�0�u�0�9�3�9�9�C�9�9�C�9�8�C�8�N��N��N��x��8��O���#��$�����!��!��!��!� ���)�(�)��)rr)
rQr.�typingrrr�
dns.exceptionr�dns.namerrSrr�<module>rWs%���
�,�,���N)�N)r

Zerion Mini Shell 1.0