Your IP : 18.226.248.17
3
��2a� � @ s� d dl Z d dlZddd�Zddd�ZG dd� de j�ZG d d
� d
e j�ZG dd� de j�ZG d
d� dee j�ZG dd� dee j�Zdd� Z dS )� N�strictc C s t j| �t| �fS )N)�zlib�compress�len)�input�errors� r �//opt/alt/python36/lib64/python3.6/zlib_codec.py�zlib_encode
s r
c C s t j| �t| �fS )N)r �
decompressr )r r r r r �zlib_decode s r c @ s e Zd Zddd�Zddd�ZdS ) �Codecr c C s
t ||�S )N)r
)�selfr r r r r �encode s zCodec.encodec C s
t ||�S )N)r )r r r r r r �decode s zCodec.decodeN)r )r )�__name__�
__module__�__qualname__r r r r r r r
s
r
c @ s( e Zd Zd
dd�Zddd�Zdd� Zd S )�IncrementalEncoderr c C s || _ tj� | _d S )N)r r �compressobj)r r r r r �__init__ s zIncrementalEncoder.__init__Fc C s. |r| j j|�}|| j j� S | j j|�S d S )N)r r �flush)r r �final�cr r r r ! s zIncrementalEncoder.encodec C s t j� | _d S )N)r r )r r r r �reset( s zIncrementalEncoder.resetN)r )F)r r r r r r r r r r r s
r c @ s( e Zd Zd
dd�Zddd�Zdd� Zd S )�IncrementalDecoderr c C s || _ tj� | _d S )N)r r �
decompressobj)r r r r r r , s zIncrementalDecoder.__init__Fc C s. |r| j j|�}|| j j� S | j j|�S d S )N)r r r )r r r r r r r r 1 s zIncrementalDecoder.decodec C s t j� | _d S )N)r r )r r r r r 8 s zIncrementalDecoder.resetN)r )F)r r r r r r r r r r r + s
r c @ s e Zd ZeZdS )�StreamWriterN)r r r �bytes�charbuffertyper r r r r ; s r c @ s e Zd ZeZdS )�StreamReaderN)r r r r r r r r r r >