HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3.8/encodings/__pycache__/zlib_codec.cpython-38.pyc
U

2�f��@s�dZddlZddlZddd�Zddd�ZGdd	�d	ej�ZGd
d�dej�ZGdd
�d
ej�ZGdd�deej�ZGdd�deej	�Z	dd�Z
dS)z�Python 'zlib_codec' Codec - zlib compression encoding.

This codec de/encodes from bytes to bytes.

Written by Marc-Andre Lemburg (mal@lemburg.com).
�N�strictcCs|dkst�t�|�t|�fS�Nr)�AssertionError�zlib�compress�len��input�errors�r�*/usr/lib/python3.8/encodings/zlib_codec.py�zlib_encode
sr
cCs|dkst�t�|�t|�fSr)rr�
decompressrrrrr�zlib_decodesrc@s eZdZddd�Zddd�ZdS)	�CodecrcCs
t||�S�N)r
��selfr	r
rrr�encodeszCodec.encodecCs
t||�Sr)rrrrr�decodeszCodec.decodeN)r)r)�__name__�
__module__�__qualname__rrrrrrrs
rc@s(eZdZd
dd�Zddd�Zdd�Zd	S)�IncrementalEncoderrcCs |dkst�||_t��|_dSr)rr
r�compressobj�rr
rrr�__init__szIncrementalEncoder.__init__FcCs.|r|j�|�}||j��S|j�|�SdSr)rr�flush�rr	�final�crrrr!szIncrementalEncoder.encodecCst��|_dSr)rr�rrrr�reset(szIncrementalEncoder.resetN)r)F)rrrrrr"rrrrrs

rc@s(eZdZd
dd�Zddd�Zdd�Zd	S)�IncrementalDecoderrcCs |dkst�||_t��|_dSr)rr
r�
decompressobjrrrrr,szIncrementalDecoder.__init__FcCs.|r|j�|�}||j��S|j�|�SdSr)r$rrrrrrr1szIncrementalDecoder.decodecCst��|_dSr)rr$r!rrrr"8szIncrementalDecoder.resetN)r)F)rrrrrr"rrrrr#+s

r#c@seZdZeZdS)�StreamWriterN�rrr�bytes�charbuffertyperrrrr%;sr%c@seZdZeZdS)�StreamReaderNr&rrrrr)>sr)c
Cstjdttttttdd�S)NrF)�namerr�incrementalencoder�incrementaldecoder�streamreader�streamwriter�_is_text_encoding)�codecs�	CodecInfor
rrr#r)r%rrrr�getregentryCs�r2)r)r)�__doc__r0rr
rrrr#r%r)r2rrrr�<module>s