Data.Digest.CRC32C

digest-0.0.2.1: CRC32 and Adler32 hashes for bytestrings

Safe Haskell | None
Language | Haskell2010

Data.Digest.CRC32C

Synopsis

- class CRC32C a
- crc32c :: CRC32C a => a -> Word32
- crc32cUpdate :: CRC32C a => Word32 -> a -> Word32

# Documentation

class CRC32C a #

Minimal complete definition

crc32cUpdate

#### Instances

Instances details

CRC32C ByteString # |
Instance details Defined in Data.Digest.CRC32C Methods crc32c :: ByteString -> Word32 # crc32cUpdate :: Word32 -> ByteString -> Word32 #
CRC32C ByteString # |
Instance details Defined in Data.Digest.CRC32C Methods crc32c :: ByteString -> Word32 # crc32cUpdate :: Word32 -> ByteString -> Word32 #
CRC32C ShortByteString # |
Instance details Defined in Data.Digest.CRC32C Methods crc32c :: ShortByteString -> Word32 # crc32cUpdate :: Word32 -> ShortByteString -> Word32 #
CRC32C [Word8] # |
Instance details Defined in Data.Digest.CRC32C Methods crc32c :: [Word8] -> Word32 # crc32cUpdate :: Word32 -> [Word8] -> Word32 #

crc32c :: CRC32C a => a -> Word32 #

Compute CRC32C checksum

crc32cUpdate :: CRC32C a => Word32 -> a -> Word32 #

Given the CRC32C checksum of a string, compute CRC32C of its concatenation with another string (t.i., incrementally update the CRC32C hash value)