%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/serial/tools/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/serial/tools/__pycache__/hexlify_codec.cpython-312.pyc |
� ��^] � �8 � d Z ddlmZ ddlZddlZ e dZ dd�Z dd�Z G d� dej � Z G d � d ej � Z G d� dej � Z G d � deej � Z G d� deej � Zd� Zy# eef$ r eZY ��w xY w)aL Python 'hex' Codec - 2-digit hex with spaces content transfer encoding. Encode and decode may be a bit missleading at first sight... The textual representation is a hex dump: e.g. "40 41" The "encoded" data of this is the binary form, e.g. b"@A" Therefore decoding is binary to text and thus converting binary data to hex dump. � )�absolute_importN�0123456789ABCDEFc � � t j | j � D �cg c] }t |d� �� c}� t | � fS c c}w �z'40 41 42' -> b'@ab'� )�serial�to_bytes�split�int�len)�data�errors�hs �</usr/lib/python3/dist-packages/serial/tools/hexlify_codec.py� hex_encoder &