Data.Digest.CRC32

digest-0.0.2.1: CRC32 and Adler32 hashes for bytestrings

Copyright | (c) 2008 Eugene Kirpichov
License | BSD-style
Maintainer | ekirpichov@gmail.com
Stability | experimental
Portability | portable (H98 + FFI)
Safe Haskell | None
Language | Haskell2010

Data.Digest.CRC32

Description

CRC32 wrapper

Synopsis

- class CRC32 a
- crc32 :: CRC32 a => a -> Word32
- crc32Update :: CRC32 a => Word32 -> a -> Word32

# Documentation

class CRC32 a #

The class of values for which CRC32 may be computed

Minimal complete definition

crc32Update

#### Instances

Instances details

CRC32 ByteString # |
Instance details Defined in Data.Digest.CRC32 Methods crc32 :: ByteString -> Word32 # crc32Update :: Word32 -> ByteString -> Word32 #
CRC32 ByteString # |
Instance details Defined in Data.Digest.CRC32 Methods crc32 :: ByteString -> Word32 # crc32Update :: Word32 -> ByteString -> Word32 #
CRC32 [Word8] # |
Instance details Defined in Data.Digest.CRC32 Methods crc32 :: [Word8] -> Word32 # crc32Update :: Word32 -> [Word8] -> Word32 #

crc32 :: CRC32 a => a -> Word32 #

Compute CRC32 checksum

crc32Update :: CRC32 a => Word32 -> a -> Word32 #

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