f _c@sdZddlZddlZdddZdddZGdd d ejZGd d d ejZGd 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). iNstrictcC|dks Jt|t|fSNr)zlibcompressleninputerrorsr -/usr/lib64/python3.10/encodings/zlib_codec.py zlib_encode  r cCrr)r decompressrrr r r zlib_decoder rc@s eZdZdddZdddZdS) CodecrcC t||SN)r selfrrr r r encodez Codec.encodecCrr)rrr r r decoderz Codec.decodeNrr)__name__ __module__ __qualname__rrr r r r rs rc@(eZdZd ddZd ddZddZd S) IncrementalEncoderrcC |dks J||_t|_dSr)rr compressobjrrr r r __init__ zIncrementalEncoder.__init__FcC*|r|j|}||jS|j|Sr)rrflushrrZfinalZcr r r r! zIncrementalEncoder.encodecCt|_dSr)rrrr r r reset(rzIncrementalEncoder.resetNrF)rrrr rr(r r r r r  rc@r) IncrementalDecoderrcCrr)rr decompressobjrr r r r ,r!zIncrementalDecoder.__init__FcCr"r)r,r r#r$r r r r1r%zIncrementalDecoder.decodecCr&r)rr,r'r r r r(8rzIncrementalDecoder.resetNrr))rrrr rr(r r r r r++r*r+c@eZdZeZdS) StreamWriterNrrrZbytesZcharbuffertyper r r r r.;r.c@r-) StreamReaderNr/r r r r r1>r0r1c CstjdttttttddS)NrF)ZnamerrZincrementalencoderZincrementaldecoderZ streamreaderZ streamwriterZ_is_text_encoding)codecsZ CodecInfor rrr+r1r.r r r r getregentryCsr3rr) Z__doc__r2rr rrrr+r.r1r3r r r r Zs