HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/env/lib/python3.10/site-packages/__pycache__/brotli.cpython-310.pyc
o

weJ�@sVdZddlZejZZejZejZejZejZejZedddfdd�Z	ej
Z
ejZdS)zCFunctions to compress and decompress data using the Brotli library.�N��cCs"t||||d�}|�|�|��S)aaCompress a byte string.

    Args:
      string (bytes): The input data.
      mode (int, optional): The compression mode can be MODE_GENERIC (default),
        MODE_TEXT (for UTF-8 format text input) or MODE_FONT (for WOFF 2.0).
      quality (int, optional): Controls the compression-speed vs compression-
        density tradeoff. The higher the quality, the slower the compression.
        Range is 0 to 11. Defaults to 11.
      lgwin (int, optional): Base 2 logarithm of the sliding window size. Range
        is 10 to 24. Defaults to 22.
      lgblock (int, optional): Base 2 logarithm of the maximum input block size.
        Range is 16 to 24. If set to 0, the value will be set based on the
        quality. Defaults to 0.

    Returns:
      The compressed byte string.

    Raises:
      brotli.error: If arguments are invalid, or compressor fails.
    )�mode�quality�lgwin�lgblock)�
Compressor�process�finish)�stringrrrr�
compressor�r
�?/home/arjun/projects/env/lib/python3.10/site-packages/brotli.py�compresss�r)�__doc__�_brotli�__version__�version�MODE_GENERIC�	MODE_TEXT�	MODE_FONTr�Decompressorr�
decompress�errorr
r
r
r�<module>s