Safe Haskell | Trustworthy |
---|---|
Language | Haskell2010 |
Synopsis
- data Fingerprint = Fingerprint !Word64 !Word64
- fingerprint0 :: Fingerprint
- fingerprintData :: Ptr Word8 -> Int -> IO Fingerprint
- fingerprintString :: String -> Fingerprint
- fingerprintFingerprints :: [Fingerprint] -> Fingerprint
- getFileHash :: FilePath -> IO Fingerprint
Documentation
data Fingerprint Source #
Instances
Eq Fingerprint Source # | |
(==) :: Fingerprint -> Fingerprint -> Bool # (/=) :: Fingerprint -> Fingerprint -> Bool # | |
Ord Fingerprint Source # | |
compare :: Fingerprint -> Fingerprint -> Ordering # (<) :: Fingerprint -> Fingerprint -> Bool # (<=) :: Fingerprint -> Fingerprint -> Bool # (>) :: Fingerprint -> Fingerprint -> Bool # (>=) :: Fingerprint -> Fingerprint -> Bool # max :: Fingerprint -> Fingerprint -> Fingerprint # min :: Fingerprint -> Fingerprint -> Fingerprint # | |
Show Fingerprint Source # | Since: 4.7.0.0 |
Storable Fingerprint Source # | Since: 4.4.0.0 |
sizeOf :: Fingerprint -> Int Source # alignment :: Fingerprint -> Int Source # peekElemOff :: Ptr Fingerprint -> Int -> IO Fingerprint Source # pokeElemOff :: Ptr Fingerprint -> Int -> Fingerprint -> IO () Source # peekByteOff :: Ptr b -> Int -> IO Fingerprint Source # pokeByteOff :: Ptr b -> Int -> Fingerprint -> IO () Source # peek :: Ptr Fingerprint -> IO Fingerprint Source # poke :: Ptr Fingerprint -> Fingerprint -> IO () Source # |
fingerprintData :: Ptr Word8 -> Int -> IO Fingerprint Source #
getFileHash :: FilePath -> IO Fingerprint Source #
Computes the hash of a given file. This function loops over the handle, running in constant memory.
Since: 4.7.0.0