std/adler32
On this page
Index
Functions
checksum
fn checksum(data: Bytes) -> IntThe Adler-32 of data, 0 to 2^32 - 1 (Go’s Checksum); 1 for empty data.
update
fn update(sum: Int, data: Bytes) -> IntThe Adler-32 of what sum was the checksum of, followed by data (Go’s
Write on a digest at that state): update(checksum(a), b) == checksum(a + b), and update(1, d) == checksum(d).