관리-도구
편집 파일: utf_32.cpython-310.opt-1.pyc
o 6��f � @ sx d Z ddlZddlZejZddd�ZG dd� dej�ZG dd � d ej�ZG d d� dej �Z G dd � d ej �Z dd� ZdS )z Python 'utf-32' Codec � N�strictc C s t �| |d�S )NT)�codecs� utf_32_decode)�input�errors� r �7/opt/alt/python310/lib64/python3.10/encodings/utf_32.py�decode s r c @ s8 e Zd Zddd�Zddd�Zdd� Zd d � Zdd� Zd S )�IncrementalEncoderr c C � t j�| |� d | _d S �N)r r �__init__�encoder��selfr r r r r � zIncrementalEncoder.__init__Fc C sP | j d u rt�|| j�d }tjdkrtj| _ |S tj| _ |S | � || j�d S )Nr �little)r r � utf_32_encoder �sys� byteorder�utf_32_le_encode�utf_32_be_encode)r r �final�resultr r r �encode s �zIncrementalEncoder.encodec C � t j�| � d | _d S r )r r �resetr �r r r r r � zIncrementalEncoder.resetc C s | j d u rdS dS )N� r )r r r r r �getstate s zIncrementalEncoder.getstatec C s0 |rd | _ d S tjdkrtj| _ d S tj| _ d S �Nr )r r r r r r �r �stater r r �setstate'