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.20250618 (722aa08 2025-06-18) ~/.moon/bin/moon
moonc v0.6.18+8382ed77e ~/.moon/bin/moonc
moonrun 0.1.20250618 (722aa08 2025-06-18) ~/.moon/bin/moonrunpub(open) trait HashFunc {
name(Self) -> String
write(Self, Byte) -> Unit
check_sum(Self) -> String
}pub(all) struct Digest {
crc : UInt
name : String
}