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 Source #

Minimal complete definition

crc32cUpdate

#### Instances

Instances details

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

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

Compute CRC32C checksum

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

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