Safe Haskell | None |
---|---|
Language | Haskell2010 |
Rattletrap.Crc
- getCrc32 :: ByteString -> Word32
- crc32Update :: Vector Word32 -> Word32 -> Word8 -> Word32
- crc32Initial :: Word32
- crc32Table :: Vector Word32
Documentation
getCrc32 :: ByteString -> Word32 #
Computes the CRC32 of some bytes. This is done to ensure that the bytes are valid before trying to parse them.
getCrc32 (pack
[0x00])
This CRC uses an initial value of 0xefcbf201
and a polynomial of
0x04c11db7
.
crc32Initial :: Word32 #
crc32Table :: Vector Word32 #