Skip to content

Commit

Permalink
docs/library/binascii: Add docs for binascii.crc32 method.
Browse files Browse the repository at this point in the history
Signed-off-by: Amirreza Hamzavi <[email protected]>
  • Loading branch information
AmirHmZz authored and dpgeorge committed Dec 3, 2024
1 parent 2e796d6 commit 406bccc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/library/binascii.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,9 @@ Functions
Encode binary data in base64 format, as in `RFC 3548
<https://tools.ietf.org/html/rfc3548.html>`_. Returns the encoded data
followed by a newline character if newline is true, as a bytes object.

.. function:: crc32(data, [value])

Compute CRC-32, the 32-bit checksum of *data*, starting with an initial CRC
of *value*. The default initial CRC is zero. The algorithm is consistent
with the ZIP file checksum.

0 comments on commit 406bccc

Please sign in to comment.