%PDF- %PDF-
Mini Shell

Mini Shell

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

�

�I�d7��N�dZd�Zdd�Zd�Zd�Zd
d�Zdd�Zd�Zd
d�Zdd	�Z	d
�Z
y)z@Network Data Representation (NDR) marshalling and unmarshalling.c�J�t|dd�}|�td|z��|�S)zmPack a NDR object.

    :param object: Object to pack
    :return: String object with marshalled object.
    �__ndr_pack__N�%r is not a NDR object��getattr�	TypeError)�object�ndr_packs  �+/usr/lib/python3/dist-packages/samba/ndr.pyr	r	s1���v�~�t�4�H����0�6�9�:�:��:��c�b�|�}t|dd�}|�td|z��|||��|S)z�NDR unpack an object.

    :param cls: Class of the object to unpack
    :param data: Buffer to unpack
    :param allow_remaining: allows remaining data at the end (default=False)
    :return: Unpacked object
    �__ndr_unpack__Nr��allow_remainingr)�cls�datarr�
ndr_unpacks     r
rr$s@���U�F���!1�4�8�J����0�6�9�:�:��t�_�5��Mrc�J�t|dd�}|�t|�d���|�S)N�
__ndr_print__z is not a NDR objectr)r�	ndr_prints  r
rr4s1������6�I����6�(�"6�7�8�8��;�rc��t|dd�}|�td|z��|�}t|�}|�}t|dd�}|�td|z��||d��|S)zzCreate a deep copy of a NDR object, using pack/unpack

    :param object: Object to copy
    :return: The object copy
    rNrr
Fr)rr�type)rr	rr�copyrs      r
�ndr_deepcopyr;su���v�~�t�4�H����0�6�9�:�:��:�D�
�v�,�C��5�D���/��6�J����0�4�7�8�8��t�U�+��Krc�P�t|dd�}|�td|z��|||��S)z�Pack the input of an NDR function object.

    :param object: Object to pack
    :param bigendian: use LIBNDR_FLAG_BIGENDIAN (default=False)
    :param ndr64: use LIBNDR_FLAG_NDR64 (default=False)
    :return: String object with marshalled object.
    �__ndr_pack_in__N�%r is not a NDR function object��	bigendian�ndr64r)rrr�ndr_pack_in_fns    r
�ndr_pack_inr!Ns7���V�%6��=�N����9�F�B�C�C��I�U�;�;rc�X�t|dd�}|�td|z��|||||��|S)acUnpack the input of an NDR function object.

    :param cls: Class of the object to unpack
    :param data: Buffer to unpack
    :param bigendian: use LIBNDR_FLAG_BIGENDIAN (default=False)
    :param ndr64: use LIBNDR_FLAG_NDR64 (default=False)
    :param allow_remaining: allows remaining data at the end (default=False)
    :return: Unpacked object
    �__ndr_unpack_in__Nr�rrrr)rrrrr�ndr_unpack_in_fns      r
�
ndr_unpack_inr&\sA���v�':�D�A�����9�F�B�C�C��T�Y�e�%4�6��Mrc�J�t|dd�}|�td|z��|�S)N�__ndr_print_in__rr)r�ndr_print_in_fns  r
�ndr_print_inr*ns1���f�&8�$�?�O����9�F�B�C�C���rc�P�t|dd�}|�td|z��|||��S)z�Pack the output of an NDR function object.

    :param object: Object to pack
    :param bigendian: use LIBNDR_FLAG_BIGENDIAN (default=False)
    :param ndr64: use LIBNDR_FLAG_NDR64 (default=False)
    :return: String object with marshalled object.
    �__ndr_pack_out__Nrrr)rrr�ndr_pack_out_fns    r
�ndr_pack_outr.us7���f�&8�$�?�O����9�F�B�C�C��Y�e�<�<rc�X�t|dd�}|�td|z��|||||��|S)adUnpack the output of an NDR function object.

    :param cls: Class of the object to unpack
    :param data: Buffer to unpack
    :param bigendian: use LIBNDR_FLAG_BIGENDIAN (default=False)
    :param ndr64: use LIBNDR_FLAG_NDR64 (default=False)
    :param allow_remaining: allows remaining data at the end (default=False)
    :return: Unpacked object
    �__ndr_unpack_out__Nrr$r)rrrrr�ndr_unpack_out_fns      r
�ndr_unpack_outr2�sA�� ��(<�d�C��� ��9�F�B�C�C��d�i�u�&5�7��Mrc�J�t|dd�}|�td|z��|�S)N�__ndr_print_out__rr)r�ndr_print_out_fns  r
�
ndr_print_outr6�s2���v�':�D�A�����9�F�B�C�C���rN)F)FF)FFF)�__doc__r	rrrr!r&r*r.r2r6�rr
�<module>r9s=��*G�	�
� ��&<��$�=��$r

Zerion Mini Shell 1.0