MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / adler32

Function adler32

native/linux/src/lib.rs:2928–2936  ·  view source on GitHub ↗
(data: &[u8])

Source from the content-addressed store, hash-verified

2926}
2927
2928fn adler32(data: &[u8]) -> u32 {
2929 let mut a: u32 = 1;
2930 let mut b: u32 = 0;
2931 for &byte in data {
2932 a = (a + byte as u32) % 65521;
2933 b = (b + a) % 65521;
2934 }
2935 (b << 16) | a
2936}
2937
2938// ============================================================
2939// Physics (Jolt 5.x) — FFI surface generated from shared macro

Callers 1

deflate_storeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected