?fS d dl Z d dlZd dlmZ d dlmZ n# e$ r G d d ZY nw xY w ddlT ddlmZm Z m
Z
n1# e$ r) ddlT ddlmZm Z m
Z
d Zn# e$ r ed
w xY wY nw xY wdZ
dZd
ZddZddZd Zd Zd ZdZ G d de j Zd ZdZdZ G d dej ZddddddddZdS ) N)maxsize)PathLikec e Zd ZdS )r N)__name__
__module____qualname__ q/builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib64/python3.11/site-packages/pyzstd/__init__.pyr r s r
r )*)_train_dict_finalize_dict_ZSTD_DStreamInSizeTa pyzstd module: Neither C implementation nor CFFI implementation can be imported. If pyzstd module is dynamically linked to zstd library, make sure not to remove zstd library, and the run-time zstd library's version can't be lower than that at compile-time.z0.15.3zPython bindings to Zstandard (zstd) compression library, the API is similar to
Python's bz2/lzma/zlib modules.
Documentation: https://pyzstd.readthedocs.io
GitHub: https://github.com/animalize/pyzstd
PyPI: https://pypi.org/project/pyzstd)ZstdCompressorRichMemZstdCompressorZstdDecompressorEndlessZstdDecompressor
CParameter
DParameterStrategy ZstdErrorcompressrichmem_compress
decompresscompress_streamdecompress_streamZstdDict
train_dict
finalize_dictget_frame_infoget_frame_sizeZstdFileopenzstd_versionzstd_version_infozstd_support_multithreadcompressionLevel_valuesc b t || }| | t j S )a Compress a block of data, return a bytes object.
Compressing b'' will get an empty content frame (9 bytes or more).
Parameters
data: A bytes-like object, data to be compressed.
level_or_option: When it's an int object, it represents compression level.
When it's a dict object, it contains advanced compression
parameters.
zstd_dict: A ZstdDict object, pre-trained dictionary for compression.
)r r FLUSH_FRAMEdatalevel_or_option zstd_dictcomps r r r 3 s* /955D==~9:::r
c L t || }| | S )aB Compress a block of data, return a bytes object.
Use rich memory mode, it's faster than compress() in some cases, but
allocates more memory.
Compressing b'' will get an empty content frame (9 bytes or more).
Parameters
data: A bytes-like object, data to be compressed.
level_or_option: When it's an int object, it represents compression level.
When it's a dict object, it contains advanced compression
parameters.
zstd_dict: A ZstdDict object, pre-trained dictionary for compression.
)r r r+ s r r r C s% !)<