MCPcopy Index your code
hub / github.com/python/cpython / crc32

Function crc32

Lib/zipfile/__init__.py:723–725  ·  view source on GitHub ↗

Compute the CRC32 primitive on one byte.

(ch, crc)

Source from the content-addressed store, hash-verified

721 crctable = _crctable
722
723 def crc32(ch, crc):
724 """Compute the CRC32 primitive on one byte."""
725 return (crc >> 8) ^ crctable[(crc ^ ch) & 0xFF]
726
727 def update_keys(c):
728 nonlocal key0, key1, key2

Callers 6

update_keysFunction · 0.85
__init__Method · 0.85
_update_crcMethod · 0.85
writeMethod · 0.85
_RealGetContentsMethod · 0.85
sprintFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…