AlkantarClanX12
Current Path : /opt/alt/python38/lib64/python3.8/__pycache__/ |
Current File : //opt/alt/python38/lib64/python3.8/__pycache__/chunk.cpython-38.opt-2.pyc |
U i�f; � @ s G d d� d�Z dS )c @ sZ e Zd Zddd�Zdd� Zdd� Zd d � Zdd� Zddd�Zdd� Z ddd�Z dd� ZdS )�ChunkTFc C s� dd l }d| _|| _|rd}nd}|| _|�d�| _t| j�dk rFt�z |�|d |�d��d | _ W n |j k r� td �Y nX |r�| j d | _ d| _z| j�� | _ W n ttfk r� d| _Y nX d| _d S ) N� F�>�<� �L� T)�struct�closed�align�file�read� chunkname�len�EOFErrorZunpack_from� chunksize�error� size_read�tell�offset�AttributeError�OSError�seekable)�selfr r Z bigendianZ inclheaderr Zstrflag� r �*/opt/alt/python38/lib64/python3.8/chunk.py�__init__4 s, zChunk.__init__c C s | j S �N)r �r r r r �getnameN s z Chunk.getnamec C s | j S r )r r r r r �getsizeR s z Chunk.getsizec C s | j sz| �� W 5 d| _ X d S )NT)r �skipr r r r �closeV s zChunk.closec C s | j rtd��dS )N�I/O operation on closed fileF)r � ValueErrorr r r r �isatty] s zChunk.isattyr c C sv | j rtd��| jstd��|dkr0|| j }n|dkrB|| j }|dk sT|| jkrXt�| j�| j | d� || _d S )Nr"