%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/hplip/base/__pycache__/
Upload File :
Create Path :
Current File : //usr/share/hplip/base/__pycache__/dime.cpython-312.pyc

�

=	f3
���ddlZddl�dZdZdZdZGd�de�ZGd�d	e�Ze	d
k(r�e
jd�ddlZe�Z
e
jedd
ed��e
jedded��ej�Ze
j#e�e
j%ej'��yy)�N�)�*��c��eZdZd�Zy)�Recordc�<�||_||_||_||_y�N)�id�typ�typ_code�payload)�selfrrr
rs     �/usr/share/hplip/base/dime.py�__init__zRecord.__init__$s�������� ��
����N)�__name__�
__module__�__qualname__r�rrrr#s��rrc�(�eZdZd�Zd�Zd�Zefd�Zy)�Messagec��g|_yr
)�records)rs rrzMessage.__init__,s	����rc�:�|jj|�yr
)r�append)r�recs  r�
add_recordzMessage.add_record/s�������C� rc	��t|j�D�]�\}}tjd||jfz�dx}x}}|dk(rd}|t|j�dz
k(rd}|j
tjdtdzdz|dzdzz|dzdzz|dzz��|j
tjd|jdzd	zd
z��|j
tjdd��|jt|j��}|j
tjdt|j���|jt|j��}|j
tjdt|j���|jt|j��}	|j
tjdt|j���|r2|j
tjd
|z|j��|r2|j
tjd
|z|j��|	s��y|j
tjd
|	z|j�����y)NzProcessing record %d (%s)rrz!B��r�r��z!Hz!Iz%ds)�	enumerater�log�debugr�len�write�struct�pack�DIME_VERSIONr
�bytes_neededrr)
r�output�i�r�mb�me�cf�id_len�typ_len�data_lens
          r�generatezMessage.generate2s���d�l�l�+�	G�D�A�q��I�I�1�Q����I�=�>���B���b��A�v�A�r��C����%�a�'�'�a���L�L����T�\�D�-@�Q�,F�-/�$�Y�1�,<�-=�-/�$�Y�1�,<�-=�.0�$�Y�-8�:�
;�

�L�L����T�Q�Z�Z�#�-=�!�,C�t�+K�L�M��L�L����T�1�-�.��&�&�s�1�4�4�y�1�F��L�L����T�3�q�t�t�9�5�6��'�'��A�E�E�
�3�G��L�L����T�3�q�u�u�:�6�7��(�(��Q�Y�Y��8�H��L�L����T�3�q�y�y�>�:�;�����V�[�[�������>�?�����V�[�[����!�%�%�@�A�����V�[�[���)9�1�9�9�E�F�?	Grc�>�||zdk(r|St||zdz�|zS)Nrr)�int)rr5�
block_sizes   rr,zMessage.bytes_neededUs.���j� �A�%��O����+�A�-�.�
�:�:rN)rrrrrr6�PAD_SIZEr,rrrrr+s���!� G�F19�;rr�__main__r&zcid:id0z)http://schemas.xmlsoap.org/soap/envelope/z<test>test</test>�test2ztext/xmlz<test>test2</test>)r)�g�TYPE_T_MIME�
TYPE_T_URIr+r:�objectrrrr%�	set_level�io�mr�StringIOr-r6�log_data�getvaluerrr�<module>rGs���.����
�
������V��.;�f�.;�f�z���M�M�'��
��	�A��L�L��	�#N�"�$7�9�:��L�L����[�:N�O�P�
�R�[�[�]�F��J�J�v���L�L����"�#�r

Zerion Mini Shell 1.0