HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/alt/python38/lib64/python3.8/site-packages/pyzstd/c/__pycache__/c_pyzstd.cpython-38.pyc
U

�T�a��@s�ddlmZddlmZddlTddlmZdZejZejZej	Z	eddd	d
g�Z
e
ejejej
�Zeddd
g�Zdd�ZGdd�de�ZGdd�de�ZGdd�de�Ze�ee�dS)�)�
namedtuple)�IntEnum�)�*)�_zstd)�compressionLevel_values�get_frame_info�
CParameter�
DParameter�StrategyZZstdCompressorZRichMemZstdCompressorZZstdDecompressorZEndlessZstdDecompressorZZstdDictZ	ZstdError�
decompressZget_frame_sizeZcompress_streamZdecompress_streamZzstd_versionZzstd_version_infoZzstd_support_multithread�values�default�min�maxZ
frame_infoZdecompressed_sizeZ
dictionary_idcCst�|�}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.)rZ_get_frame_info�_nt_frame_info)Zframe_bufferZ	ret_tuple�r�D/opt/alt/python38/lib64/python3.8/site-packages/pyzstd/c/c_pyzstd.pyr"s
rc@s�eZdZdZejZejZej	Z
ejZej
ZejZejZejZejZejZejZejZejZejZ ej!Z"ej#Z$ej%Z&ej'Z(ej)Z*dd�Z+dS)r	zCompression parameterscCst�d|j�S)zIReturn lower and upper bounds of a compression parameter, both inclusive.r�rZ_get_param_bounds�value��selfrrr�boundsRszCParameter.boundsN),�__name__�
__module__�__qualname__�__doc__rZ_ZSTD_c_compressionLevelZcompressionLevelZ_ZSTD_c_windowLogZ	windowLogZ_ZSTD_c_hashLogZhashLogZ_ZSTD_c_chainLogZchainLogZ_ZSTD_c_searchLogZ	searchLogZ_ZSTD_c_minMatchZminMatchZ_ZSTD_c_targetLengthZtargetLengthZ_ZSTD_c_strategyZstrategyZ"_ZSTD_c_enableLongDistanceMatchingZenableLongDistanceMatchingZ_ZSTD_c_ldmHashLogZ
ldmHashLogZ_ZSTD_c_ldmMinMatchZldmMinMatchZ_ZSTD_c_ldmBucketSizeLogZldmBucketSizeLogZ_ZSTD_c_ldmHashRateLogZldmHashRateLogZ_ZSTD_c_contentSizeFlagZcontentSizeFlagZ_ZSTD_c_checksumFlagZchecksumFlagZ_ZSTD_c_dictIDFlagZ
dictIDFlagZ_ZSTD_c_nbWorkersZ	nbWorkersZ_ZSTD_c_jobSizeZjobSizeZ_ZSTD_c_overlapLogZ
overlapLogrrrrrr	8s*r	c@seZdZdZejZdd�ZdS)r
zDecompression parameterscCst�d|j�S)zKReturn lower and upper bounds of a decompression parameter, both inclusive.rrrrrrr]szDParameter.boundsN)rrrrrZ_ZSTD_d_windowLogMaxZwindowLogMaxrrrrrr
Xsr
c@sFeZdZdZejZejZej	Z
ejZej
ZejZejZejZejZdS)rz�Compression strategies, listed from fastest to strongest.

    Note : new strategies _might_ be added in the future, only the order
    (from fast to strong) is guaranteed.
    N)rrrrrZ
_ZSTD_fastZfastZ_ZSTD_dfastZdfastZ_ZSTD_greedyZgreedyZ
_ZSTD_lazyZlazyZ_ZSTD_lazy2Zlazy2Z
_ZSTD_btlazy2Zbtlazy2Z_ZSTD_btoptZbtoptZ
_ZSTD_btultraZbtultraZ_ZSTD_btultra2Zbtultra2rrrrrcsrN)�collectionsr�enumrr��__all__Z_ZSTD_DStreamInSizeZ_train_dictZ_finalize_dictZ
_nt_valuesZ_ZSTD_defaultCLevelZ_ZSTD_minCLevelZ_ZSTD_maxCLevelrrrr	r
rZ_set_parameter_typesrrrr�<module>s(��