MoonBit crc32: provide simple crc32 hash algorithm.
Content is available under GNU Free Document License 1.3 unless otherwise noted.$ moon version --all
moon 0.1.20260920 (914d7da 2026-09-20) ~/.moon/bin/moon
moonc v0.10.14+7d59c7ec9 (2026-09-18) ~/.moon/bin/moonc
moonrun 0.1.20260920 (914d7da 2026-09-20) ~/.moon/bin/moonrun
pub(open) trait HashFunc {
fn name(Self) -> String
fn reset(Self) -> Unit
fn size(Self) -> Int
fn write(Self, Byte) -> Unit
fn check_sum(Self) -> String
}pub(all) struct Digest {
crc : UInt
name : String
}