pure-cdb-0.1.1: Another pure-haskell CDB (Constant Database) implementation

Safe HaskellNone

Database.PureCDB.Internal

Synopsis

Documentation

data TOCHash Source

Constructors

TOCHash 

Fields

hPosition :: Word32
 
hLength :: Word32
 

Instances

Show TOCHash 

data ReadCDB Source

Read handle for the database.

Constructors

ReadCDB 

Fields

rHandle :: Handle
 
rTOC :: Vector TOCHash
 

cdbHash :: ByteString -> Word32Source

tocIndex :: Integral a => a -> IntSource

tocFind :: ReadCDB -> ByteString -> (TOCHash, Word32)Source

layoutHash :: Int -> IntMap [a] -> Maybe [(Int, a)]Source

coalesceHash :: Integral a => a -> [(a, b)] -> IntMap [(a, b)]Source

createHashVector :: Integral a => a -> (a, b) -> [(a, b)] -> Vector (a, b)Source

hashSlot :: Integral a => a -> a -> aSource