File: //opt/alt/python38/lib64/python3.8/site-packages/pyzstd/c/__pycache__/c_pyzstd.cpython-38.pyc
U
�T�a� � @ s� d dl mZ d dlmZ ddlT ddlmZ dZejZejZej Z eddd d
g�Z
e
ejejej
�Zeddd
g�Zdd� ZG dd� de�ZG dd� de�ZG dd� de�Ze�ee� dS )� )�
namedtuple)�IntEnum� )�*)�_zstd)�compressionLevel_values�get_frame_info�
CParameter�
DParameter�StrategyZZstdCompressorZRichMemZstdCompressorZZstdDecompressorZEndlessZstdDecompressorZZstdDictZ ZstdError�
decompressZget_frame_sizeZcompress_streamZdecompress_streamZzstd_versionZzstd_version_infoZzstd_support_multithread�values�default�min�maxZ
frame_infoZdecompressed_sizeZ
dictionary_idc C s t �| �}t|� S )a� Get zstd frame infomation from a frame header.
Parameter
frame_buffer: A bytes-like object. It should starts from the beginning of
a frame, and needs to include at least the frame header (6 to
18 bytes).
Return a two-items namedtuple: (decompressed_size, dictionary_id)
If decompressed_size is None, decompressed size is unknown.
dictionary_id is a 32-bit unsigned integer value. 0 means dictionary ID was
not recorded in the frame header, the frame may or may not need a dictionary
to be decoded, and the ID of such a dictionary is not specified.
It's possible to append more items to the namedtuple in the future.)r Z_get_frame_info�_nt_frame_info)Zframe_bufferZ ret_tuple� r �D/opt/alt/python38/lib64/python3.8/site-packages/pyzstd/c/c_pyzstd.pyr "