MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / crc32

Function crc32

tools/python-3.11.9-amd64/Lib/zipfile.py:604–606  ·  view source on GitHub ↗

Compute the CRC32 primitive on one byte.

(ch, crc)

Source from the content-addressed store, hash-verified

602 crctable = _crctable
603
604 def crc32(ch, crc):
605 """Compute the CRC32 primitive on one byte."""
606 return (crc >> 8) ^ crctable[(crc ^ ch) & 0xFF]
607
608 def update_keys(c):
609 nonlocal key0, key1, key2

Callers 5

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

Calls

no outgoing calls

Tested by

no test coverage detected