Viewing File: /opt/imunify360/venv/lib/python3.11/site-packages/pyzstd/c/__pycache__/c_pyzstd.cpython-311.pyc



]jXddlmZddlmZddlmZddlTddlmZdZej	Z	ej
Z
ejZedgd	Zeej
ejejZed
ddgZd
ZGddeZGddeZGddeZejeedS))
namedtuple)IntEnum)	lru_cache)*)_zstd)compressionLevel_valuesget_frame_info
CParameter
DParameterStrategyZstdCompressorRichMemZstdCompressorZstdDecompressorEndlessZstdDecompressorZstdDict	ZstdError
decompressget_frame_sizecompress_streamdecompress_streamzstd_versionzstd_version_infozstd_support_multithreadvalues)defaultminmax
frame_infodecompressed_size
dictionary_idc<tj|}t|S)aGet 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_get_frame_info_nt_frame_info)frame_buffer	ret_tuples  s/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib64/python3.11/site-packages/pyzstd/c/c_pyzstd.pyr
r
#s$%l33I9%%cFeZdZdZejZejZej	Z
ejZej
ZejZejZejZejZejZejZejZejZejZ ej!Z"ej#Z$ej%Z&ej'Z(ej)Z*e+ddZ,dS)rzCompression parametersNmaxsizec6tjd|jS)zIReturn lower and upper bounds of a compression parameter, both inclusive.rr_get_param_boundsvalueselfs r'boundszCParameter.boundsS&q$*555r()-__name__
__module____qualname____doc__r_ZSTD_c_compressionLevelcompressionLevel_ZSTD_c_windowLog	windowLog_ZSTD_c_hashLoghashLog_ZSTD_c_chainLogchainLog_ZSTD_c_searchLog	searchLog_ZSTD_c_minMatchminMatch_ZSTD_c_targetLengthtargetLength_ZSTD_c_strategystrategy"_ZSTD_c_enableLongDistanceMatchingenableLongDistanceMatching_ZSTD_c_ldmHashLog
ldmHashLog_ZSTD_c_ldmMinMatchldmMinMatch_ZSTD_c_ldmBucketSizeLogldmBucketSizeLog_ZSTD_c_ldmHashRateLogldmHashRateLog_ZSTD_c_contentSizeFlagcontentSizeFlag_ZSTD_c_checksumFlagchecksumFlag_ZSTD_c_dictIDFlag
dictIDFlag_ZSTD_c_nbWorkers	nbWorkers_ZSTD_c_jobSizejobSize_ZSTD_c_overlapLog
overlapLogrr2r(r'rr9s  !&!?!&!8I!&!6G!&!7H!&!8I!&!7H!&!;L!&!7H!&!I!&!9J!&!:K!&!?!&!=N!&!>O!&!;L!&!9J!&!8I!&!6G!&!9JYt66666r(rcJeZdZdZejZeddZdS)rzDecompression parametersNr*c6tjd|jS)zKReturn lower and upper bounds of a decompression parameter, both inclusive.rr-r0s r'r2zDParameter.bounds_r3r()	r4r5r6r7r_ZSTD_d_windowLogMaxwindowLogMaxrr2r^r(r'rrZsI""-LYt66666r(rceZdZdZejZejZej	Z
ejZej
ZejZejZejZejZdS)r
zCompression 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)r4r5r6r7r
_ZSTD_fastfast_ZSTD_dfastdfast_ZSTD_greedygreedy
_ZSTD_lazylazy_ZSTD_lazy2lazy2
_ZSTD_btlazy2btlazy2_ZSTD_btoptbtopt
_ZSTD_btultrabtultra_ZSTD_btultra2btultra2r^r(r'r
r
fsb
D E!FD E"G E"G#HHHr(r
N)collectionsrenumr	functoolsrr__all___ZSTD_DStreamInSize_train_dict_finalize_dict
_nt_values_ZSTD_defaultCLevel_ZSTD_minCLevel_ZSTD_maxCLevelr	r$r
rrr
_set_parameter_typesr^r(r'<module>rs""""""L/%Z";";";
<
<
$*U%>%*%:%*%:<<
L0/BDD&&&,66666666B	6	6	6	6	6	6	6	6$$$$$w$$$$:z22222r(
Back to Directory File Manager