Skip to main content

fds_crc32

Function fds_crc32 

Source
pub fn fds_crc32(data: &[u8]) -> u32
Expand description

CRC-32/ISO-HDLC (the standard zlib/PNG “CRC-32”) over data.

no_std-friendly (no lookup-table allocation — the polynomial is applied bitwise); used only at construction time to key the per-game quirk table, so the per-byte cost is irrelevant to the hot paths. Deterministic by construction.