CRC32 checksum implementation
moon add kujirahand/crc32import {
"kujirahand/crc32" @crc32
}///|
fn main {
println(@crc32.checksum(b"hello")) // 907060870
println(@crc32.checksum(b"dog")) // 2167159165
}fn main {
// Stream example
let mut stream = @crc32.CRC32Stream::new()
stream = stream.update(b"hello")
println(stream.finalize()) // 907060870
}
fn checksum(bytes : Bytes) -> UIntInstall
Download zipCRC32 checksum implementation