+
     h  c                   s     ^RI 5 ^RI5 ^RI5 RtRtRt]P                  P                  4       R8g  tRR ltRR ltR tR	 tR
 tR#   ] d     ^RI5  LQ  ] d
    ]! R4      hi ; ii ; i)   )Z*a  

pyzstd module: Can't import compiled .so/.pyd file.
1, 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; On Windows, the directory
   that has libzstd.dll should be added by os.add_dll_directory() function.
2, Please install pyzstd module through pip, to ensure that compiled
   .so/.pyd file matches the architecture/OS/Python.
z0.16.2a2  Python bindings to Zstandard (zstd) compression library, the API style is
similar to Python's bz2/lzma/zlib modules.

Command line interface of this module: python -m pyzstd --help

Documentation: https://pyzstd.readthedocs.io
GitHub: https://github.com/Rogdham/pyzstd
PyPI: https://pypi.org/project/pyzstdNc                sX    \        W4      pVP                  V \         P                  4      # )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.
)ZstdCompressorcompressZFLUSH_FRAMEZdataZlevel_or_option	zstd_dictZcomp   &&& 6/usr/lib64/python3.14/site-packages/pyzstd/__init__.pyr   r   /   s%     /5D==~99::    c                s:    \        W4      pVP                  V 4      # )a  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.
)RichMemZstdCompressorr   r   r   r   richmem_compressr	   ?   s     !<D==r   c                 s    \        V \        \        34      '       d   \        V 4      # \	        V 4      ;_uu_ 4       pVP
                  uuR R R 4       #   + '       g   i     R # ; i)N)
isinstanceZbytesZ	bytearrayZlenZ
memoryviewZnbytes)ZdatZmvs   & r   _nbytesr   R   s;    #y)**3x	CByy 
s   AA#	c                s*   \        V\        4      '       g   \        R4      h. p. pV  F.  pVP                  V4       VP                  \	        V4      4       K0  	  RP                  V4      pV'       g   \        R4      h\        W#V4      p\        V4      # )zTrain a zstd dictionary, return a ZstdDict object.

Parameters
samples:   An iterable of samples, a sample is a bytes-like object
           represents a file.
dict_size: The dictionary's maximum size, in bytes.
+dict_size argument should be an int object.r   z6The samples are empty content, can't train dictionary.)	r
   int	TypeErrorappendr   join
ValueErrorZ_train_dictZstdDict)samples	dict_sizechunkschunk_sizeschunkdict_contents   &&    r   
train_dictr   Y   s     i%%EFF FKe75>*  XXfFQRR
 vI>LL!!r   c                s
   \         R8  d   R\        ,          p\        V4      h\        V \        4      '       g   \        R4      h\        V\        4      '       g   \        R4      h\        V\        4      '       g   \        R4      h. p. pV F.  pVP                  V4       VP                  \        V4      4       K0  	  RP                  V4      pV'       g   \        R4      h\        V P                  WVW#4      p\	        V4      # )au  Finalize a zstd dictionary, return a ZstdDict object.

Given a custom content as a basis for dictionary, and a set of samples,
finalize dictionary by adding headers and statistics according to the zstd
dictionary format.

You may compose an effective dictionary content by hand, which is used as
basis dictionary, and use some samples to finalize a dictionary. The basis
dictionary can be a "raw content" dictionary, see is_raw parameter in
ZstdDict.__init__ method.

Parameters
zstd_dict: A ZstdDict object, basis dictionary.
samples:   An iterable of samples, a sample is a bytes-like object
           represents a file.
dict_size: The dictionary's maximum size, in bytes.
level:     The compression level expected to use in production. The
           statistics for each compression level differ, so tuning the
           dictionary for the compression level can help quite a bit.
zThis function only available when the underlying zstd library's version is greater than or equal to v1.4.5, the current underlying zstd library's version is v%s.z/zstd_dict argument should be a ZstdDict object.r   z'level argument should be an int object.r   z9The samples are empty content, can't finalize dictionary.)r    i   i   )zstd_version_infozstd_versionZNotImplementedErrorr
   r   r   r   r   r   r   r   Z_finalize_dictr   )	r   r   r   ZlevelZmsgr   r   r   r   s	   &&&&     r   finalize_dictr   x   s    * 9$GJVW "#&& i**IJJi%%EFFeS!!ABB FKe75>*  XXfFTUU ")"8"8"("+4L L!!r   )r   r   ZZstdDecompressorZEndlessZstdDecompressor
CParameterZ
DParameterZStrategyZ	ZstdErrorr   r	   Z
decompressZcompress_streamZdecompress_streamr   r   r   Zget_frame_infoZget_frame_sizeZZstdFileZopenr   r   zstd_support_multithreadZcompressionLevel_valuesZSeekableZstdFileZSeekableFormatError)    r   )NN)ZcZImportErrorZcffiZzstdfileZseekable_zstdfileZ__version__Z__doc__Z__all__r   Z	nbWorkersZboundsr   r   r	   r   r   r   ) r   r   <module>r       s   F   )	6 '00779VC ; &">7"i  FF FEF 	FF	Fs   A	 	A,AA((A,