o
    Œõ±jš  ã                   @   s.   d Z ddlmZmZmZmZ dgZdd„ ZdS )z�
Function to fill ensure integers converted to a byte string are a specific
width. Exports the following items:

 - fill_width()
é    )Úunicode_literalsÚdivisionÚabsolute_importÚprint_functionÚ
fill_widthc                 C   s$   t | ƒ|k rd|  } t | ƒ|k s| S )a  
    Ensure a byte string representing a positive integer is a specific width
    (in bytes)

    :param bytes_:
        The integer byte string

    :param width:
        The desired width as an integer

    :return:
        A byte string of the width specified
    ó    )Úlen)Úbytes_Úwidth© r   ú€/root/aizidognhua/tmp/workspace/projects/ec89d86c-575f-41c9-af57-ac45cbdbf775/venv/lib/python3.10/site-packages/oscrypto/_int.pyr      s   ÿN)Ú__doc__Ú
__future__r   r   r   r   Ú__all__r   r   r   r   r   Ú<module>   s
   ÿ