관리-도구
편집 파일: utf_16.cpython-312.opt-1.pyc
� �Q�ft � �� � d Z ddlZddlZej Zd d�Z G d� dej � Z G d� dej � Z G d� d ej � Z G d � dej � Z d� Zy)z� Python 'utf-16' Codec Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. � Nc �0 � t j | |d� S )NT)�codecs� utf_16_decode)�input�errorss �7/opt/alt/python312/lib64/python3.12/encodings/utf_16.py�decoder s � �����v�t�4�4� c �. � e Zd Zdd�Zdd�Zd� Zd� Zd� Zy) �IncrementalEncoderc �R � t j j | |� d | _ y �N)r r �__init__�encoder��selfr s r r zIncrementalEncoder.__init__ s � ��!�!�*�*�4��8���r c � � | j �dt j || j � d }t j dk( rt j | _ |S t j | _ |S | j || j � d S )Nr �little)r r � utf_16_encoder �sys� byteorder�utf_16_le_encode�utf_16_be_encode)r r �final�results r �encodezIncrementalEncoder.encode su � ��<�<���)�)�%����=�a�@�F��}�}��(�%�6�6��� �M� &�6�6����M��|�|�E�4�;�;�/��2�2r c �P � t j j | � d | _ y r )r r �resetr �r s r r zIncrementalEncoder.reset! s � ��!�!�'�'��-���r c �"