tokyocabinet-haskell-0.0.5: Haskell binding of Tokyo Cabinet

Safe Haskell | None

Database.TokyoCabinet.Storable

# Documentation

type PtrLen = (Ptr Word8, CInt)Source

liftPL :: (a -> (CStringLen -> IO b) -> IO b) -> a -> (PtrLen -> IO b) -> IO bSource

class (Show a, Read a) => Storable a where Source

Methods

withPtrLen :: a -> (PtrLen -> IO b) -> IO bSource

withPtrLenL :: [a] -> (PtrLen -> IO b) -> IO bSource

peekPtrLenL :: PtrLen -> a -> IO [a]Source

peekPtrLen :: PtrLen -> IO aSource

toInt64 :: a -> Int64 Source

toInt64L :: [a] -> Int64 Source

fromString :: String -> aSource

fromStringL :: String -> [a]Source

Instances

Storable Char |
Storable Double |
Storable Float |
Storable Int |
Storable Int8 |
Storable Int16 |
Storable Int32 |
Storable Int64 |
Storable Word8 |
Storable Word16 |
Storable Word32 |
Storable Word64 |
Storable CInt |
Storable CFloat |
Storable CDouble |
Storable ByteString |
Storable ByteString |
(Storable a, Storable a) => Storable [a] |

withPtrLenForFStorable :: Storable a => a -> (PtrLen -> IO b) -> IO bSource

peekPtrLenForFStorable :: Storable a => PtrLen -> IO aSource

withPtrLenLForFStorable :: Storable a => [a] -> (PtrLen -> IO b) -> IO bSource

peekPtrLenLForFStorable :: Storable a => PtrLen -> a -> IO [a]Source