Ë
    ð%9jO
  ã                   ó"   — d dl Z  G d„ de«      Zy)é    Nc                   ó:   — e Zd ZdZdZd
d„Zd„ Zd„ Zd„ Zd„ Z	d„ Z
y	)ÚCommonChecksuma  Hashlib-alike helper for CRC32C operations.

    This class should not be used directly and requires an update implementation.

    Args:
        initial_value (Optional[bytes]): the initial chunk of data from
            which the CRC32C checksum is computed.  Defaults to b''.
    © c                 ó@   — d| _         |dk7  r| j                  |«       y y )Nr   ó    )Ú_crcÚupdate)ÚselfÚinitial_values     úS/var/www/html/truck-me/venv/lib/python3.12/site-packages/google_crc32c/_checksum.pyÚ__init__zCommonChecksum.__init__   s"   € ØˆŒ	Ø˜CÒØ�K‰K˜Õ&ð  r   c                 ó   — t         ‚)z®Update the checksum with a new chunk of data.

        Args:
            chunk (Optional[bytes]): a chunk of data used to extend
                the CRC32C checksum.
        )ÚNotImplementedError)r
   Údatas     r   r	   zCommonChecksum.update"   s
   € ô "Ð!r   c                 óB   — t        j                  d| j                  «      S )z¹Big-endian order, per RFC 4960.

        See: https://cloud.google.com/storage/docs/json_api/v1/objects#crc32c

        Returns:
            bytes: An eight-byte digest string.
        z>L)ÚstructÚpackr   ©r
   s    r   ÚdigestzCommonChecksum.digest+   s   € ô �{‰{˜4 §¡Ó+Ð+r   c                 óV   — dj                  | j                  «      j                  d«      S )zªLike :meth:`digest` except returns as a bytestring of double length.

        Returns
            bytes: A sixteen byte digest string, contaiing only hex digits.
        z{:08x}Úascii)Úformatr   Úencoder   s    r   Ú	hexdigestzCommonChecksum.hexdigest5   s"   € ð �‰˜tŸy™yÓ)×0Ñ0°Ó9Ð9r   c                 óH   — | j                  «       }| j                  |_        |S )zvCreate another checksum with the same CRC32C value.

        Returns:
            Checksum: the new instance.
        )Ú	__class__r   )r
   Úclones     r   ÚcopyzCommonChecksum.copy=   s    € ð —‘Ó ˆØ—Y‘YˆŒ
Øˆr   c              #   ó`   K  — 	 |j                  |«      }|sy| j                  |«       |–— Œ*­w)a;  Consume chunks from a stream, extending our CRC32 checksum.

        Args:
            stream (BinaryIO): the stream to consume.
            chunksize (int): the size of the read to perform

        Returns:
            Generator[bytes, None, None]: Iterable of the chunks read from the
            stream.
        N)Úreadr	   )r
   ÚstreamÚ	chunksizeÚchunks       r   ÚconsumezCommonChecksum.consumeG   s5   è ø€ ð Ø—K‘K 	Ó*ˆEÙØØ�K‰K˜ÔØŠKð ùs   ‚,.N)r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__r   r	   r   r   r   r$   r   r   r   r   r      s,   „ ñð €Ió'ò
"ò,ò:òór   r   )r   Úobjectr   r   r   r   ú<module>r+      s   ðó ôE�Võ Er   