ffXddlmZddlmZddlmZddlTddlmZdZej Z ej Z ej Z edgd Z e ej ejejZed d d 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.3.5/opt/imunify360/venv/lib64/python3.11/site-packages/pyzstd/c/c_pyzstd.pyr r #s$%l33I 9 %%cFeZdZdZejZejZej Z ej Z ej ZejZejZejZejZejZejZejZejZejZ ej!Z"ej#Z$ej%Z&ej'Z(ej)Z*e+ddZ,dS)r zCompression 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_ldmMinMatch ldmMinMatch_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'r r 9s  !&!?!&!8I!&!6G!&!7H!&!8I!&!7H!&!;L!&!7H!&!I!&!9J!&!:K!&!?!&!=N!&!>O!&!;L!&!9J!&!8I!&!6G!&!9JYt66666r(r cJeZdZdZejZeddZdS)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 ej Z 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 r r r _set_parameter_typesr^r(r'rs"""""" L/ %Z";";"; < < $*U%>%*%:%*%:<< L0/BDD&&&,66666666B 6 6 6 6 6 6 6 6$$$$$w$$$$:z22222r(