o
    uy‚iˆ  ã                   @  s4   d dl mZ d dlZd dlmZ G dd„ deƒZdS )é    )ÚannotationsN)ÚCodecc                   @  s(   e Zd Zed
dd„ƒZeddd„ƒZd	S )ÚDeflateCodecÚdataÚbytesÚreturnútuple[bytes, int]c                 C  s   t  | ¡dd… }|t|ƒfS )Né   éÿÿÿÿ)ÚzlibÚcompressÚlen)r   Úcompressed_data© r   ú`/home/ubuntu/maya3_transcribe/venv/lib/python3.10/site-packages/pyiceberg/avro/codecs/deflate.pyr      s   zDeflateCodec.compressc                 C  s   t  | d¡S )Niñÿÿÿ)r   Ú
decompress)r   r   r   r   r       s   zDeflateCodec.decompressN)r   r   r   r   )r   r   r   r   )Ú__name__Ú
__module__Ú__qualname__Ústaticmethodr   r   r   r   r   r   r      s
    r   )Ú
__future__r   r   Úpyiceberg.avro.codecs.codecr   r   r   r   r   r   Ú<module>   s   