Your IP : 3.12.76.168


Current Path : /opt/alt/python310/lib64/python3.10/encodings/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/encodings/__pycache__/utf_32.cpython-310.opt-2.pyc

o

6��f	�@sv	ddlZddlZejZddd�ZGdd�dej�ZGdd�dej�ZGd	d
�d
ej�ZGdd�dej	�Z	d
d�Z
dS)�N�strictcCst�||d�S)NT)�codecs�
utf_32_decode)�input�errors�r�7/opt/alt/python310/lib64/python3.10/encodings/utf_32.py�decode
sr	c@s8eZdZddd�Zddd�Zdd�Zd	d
�Zdd�Zd
S)�IncrementalEncoderrcC�tj�||�d|_dS�N)rr
�__init__�encoder��selfrrrrr
�
zIncrementalEncoder.__init__FcCsP|jdurt�||j�d}tjdkrtj|_|Stj|_|S|�||j�dS)Nr�little)rr�
utf_32_encoder�sys�	byteorder�utf_32_le_encode�utf_32_be_encode)rr�final�resultrrr�encodes

�zIncrementalEncoder.encodecC�tj�|�d|_dSr)rr
�resetr�rrrrr�
zIncrementalEncoder.resetcCs|jdurdSdS)N�r)rrrrr�getstate szIncrementalEncoder.getstatecCs0|rd|_dStjdkrtj|_dStj|_dS�Nr)rrrrrr�r�staterrr�setstate's


zIncrementalEncoder.setstateN�r)F)�__name__�
__module__�__qualname__r
rrr r$rrrrr

s


r
c@s6eZdZd
dd�Zdd�Zdd�Zdd	�Zd
d�ZdS)�IncrementalDecoderrcCrr)r�BufferedIncrementalDecoderr
�decoderrrrrr
1rzIncrementalDecoder.__init__cCsx|jdur4t�||d|�\}}}|dkrtj|_||fS|dkr(tj|_||fS|dkr0td��||fS|�||j|�S)Nr������%UTF-32 stream does not start with BOM)r+r�utf_32_ex_decode�utf_32_le_decode�utf_32_be_decode�UnicodeErrorr)rrrr�output�consumedrrrr�_buffer_decode5s
���z!IncrementalDecoder._buffer_decodecCrr)rr*rr+rrrrrBrzIncrementalDecoder.resetcCsDtj�|�d}|jdur|dfSttjdk|jtjuk�}||fS)Nrr�big)rr*r r+�intrrr2)rr#Zaddstaterrrr Fs


�zIncrementalDecoder.getstatecCsttj�||�|d}|dkr tjdkrtj|_dStj|_dS|dkr5tjdkr/tj|_dStj|_dSd|_dS)Nr-rr7)rr*r$rrr2r1r+r"rrrr$Ts
��
��
zIncrementalDecoder.setstateNr%)r&r'r(r
r6rr r$rrrrr)0s

r)c@s(eZdZd	dd�Zdd�Zd	dd�ZdS)
�StreamWriterrcCsd|_tj�|||�dSr)rrr9r
)r�streamrrrrr
dszStreamWriter.__init__cCrr)rr9rrrrrrrhrzStreamWriter.resetcCsD|jdurt�||�}tjdkrtj|_|Stj|_|S|�||�Sr!)rrrrrrr)rrrrrrrrls

�zStreamWriter.encodeNr%)r&r'r(r
rrrrrrr9cs
r9c@seZdZdd�Zddd�ZdS)�StreamReadercCs,tj�|�z|`WdStyYdSwr)rr;rr	�AttributeErrorrrrrrys
�zStreamReader.resetrcCs^t�||dd�\}}}|dkrtj|_||fS|dkr#tj|_||fS|dkr+td��||fS)NrFr,r-r.r/)rr0r1r	r2r3)rrr�objectr5rrrrr	�s���zStreamReader.decodeNr%)r&r'r(rr	rrrrr;wsr;c	Cstjdttttttd�S)Nzutf-32)�namerr	�incrementalencoder�incrementaldecoder�streamreader�streamwriter)r�	CodecInforr	r
r)r;r9rrrr�getregentry�s�rDr%)rrrrr	r
r*r)r9r;rDrrrr�<module>s
#3

?>