Skip to content

Commit cbcfb8a

Browse files
committed
Add binascii crc32 to documentation
1 parent 6af4c77 commit cbcfb8a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/library/binascii.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,9 @@ Functions
3636
Encode binary data in base64 format, as in `RFC 3548
3737
<https://tools.ietf.org/html/rfc3548.html>`_. Returns the encoded data
3838
followed by a newline character, as a bytes object.
39+
40+
.. function:: crc32(data, value=0, /)
41+
42+
Compute CRC-32, the 32-bit checksum of the bytes in *data* starting with an
43+
initial CRC of *value*. The default initial CRC is 0. The algorithm is
44+
consistent with the ZIP file checksum.

0 commit comments

Comments
 (0)