• File: zlib_codec.cpython-37.opt-1.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib64/python3.7/encodings/__pycache__/zlib_codec.cpython-37.opt-1.pyc
  • Date Modified: 10/26/2026 8:08 PM
  • File size: 2.94 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

Nj@sdZddlZddlZdddZdddZGdd	d	ejZGd
ddejZGdd
d
ejZGdddeejZGdddeej	Z	ddZ
dS)zPython 'zlib_codec' Codec - zlib compression encoding.

This codec de/encodes from bytes to bytes.

Written by Marc-Andre Lemburg (mal@lemburg.com).
NstrictcCst|t|fS)N)zlibcompresslen)inputerrorsr9/opt/alt/python37/lib64/python3.7/encodings/zlib_codec.pyzlib_encode
sr
cCst|t|fS)N)r
decompressr)rrrrr	zlib_decodesrc@s eZdZdddZdddZdS)	CodecrcCs
t||S)N)r
)selfrrrrr	encodeszCodec.encodecCs
t||S)N)r)rrrrrr	decodeszCodec.decodeN)r)r)__name__
__module____qualname__rrrrrr	r
s
r
c@s(eZdZd
ddZdddZddZd	S)IncrementalEncoderrcCs||_t|_dS)N)rrcompressobj)rrrrr	__init__szIncrementalEncoder.__init__FcCs.|r|j|}||jS|j|SdS)N)rrflush)rrfinalcrrr	r!szIncrementalEncoder.encodecCst|_dS)N)rr)rrrr	reset(szIncrementalEncoder.resetN)r)F)rrrrrrrrrr	rs

rc@s(eZdZd
ddZdddZddZd	S)IncrementalDecoderrcCs||_t|_dS)N)rr
decompressobj)rrrrr	r,szIncrementalDecoder.__init__FcCs.|r|j|}||jS|j|SdS)N)rrr)rrrrrrr	r1szIncrementalDecoder.decodecCst|_dS)N)rr)rrrr	r8szIncrementalDecoder.resetN)r)F)rrrrrrrrrr	r+s

rc@seZdZeZdS)StreamWriterN)rrrbytescharbuffertyperrrr	r;src@seZdZeZdS)StreamReaderN)rrrrrrrrr	r >sr c
CstjdttttttddS)NrF)namerrincrementalencoderincrementaldecoderstreamreaderstreamwriter_is_text_encoding)codecs	CodecInfor
rrrr rrrrr	getregentryCsr))r)r)__doc__r'rr
rr
rrrr r)rrrr	<module>s