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.20260522 (84aa893 2026-05-22) ~/.moon/bin/moon
moonc v0.9.3+3d4544a9e (2026-05-22) ~/.moon/bin/moonc
moonrun 0.1.20260522 (84aa893 2026-05-22) ~/.moon/bin/moonrun
pub(open) trait HashFunc {
fn name(Self) -> String
fn write(Self, Byte) -> Unit
fn check_sum(Self) -> String
}pub(all) struct Digest {
crc : UInt
name : String
}MoonBit crc32: provide simple crc32 hash algorithm.