storable-tuple-0.0.3.3: Storable instance for pairs and triples
Safe HaskellSafe
LanguageHaskell98

Foreign.Storable.Tuple

Documentation

storePair :: (Storable a, Storable b) => Dictionary (a, b) Source #

storeTriple :: (Storable a, Storable b, Storable c) => Dictionary (a, b, c) Source #

storeQuadruple :: (Storable a, Storable b, Storable c, Storable d) => Dictionary (a, b, c, d) Source #

Orphan instances

(Storable a, Storable b) => Storable (a, b) Source # 
Instance details

Methods

sizeOf :: (a, b) -> Int

alignment :: (a, b) -> Int

peekElemOff :: Ptr (a, b) -> Int -> IO (a, b)

pokeElemOff :: Ptr (a, b) -> Int -> (a, b) -> IO ()

peekByteOff :: Ptr b0 -> Int -> IO (a, b)

pokeByteOff :: Ptr b0 -> Int -> (a, b) -> IO ()

peek :: Ptr (a, b) -> IO (a, b)

poke :: Ptr (a, b) -> (a, b) -> IO ()

(Storable a, Storable b, Storable c) => Storable (a, b, c) Source # 
Instance details

Methods

sizeOf :: (a, b, c) -> Int

alignment :: (a, b, c) -> Int

peekElemOff :: Ptr (a, b, c) -> Int -> IO (a, b, c)

pokeElemOff :: Ptr (a, b, c) -> Int -> (a, b, c) -> IO ()

peekByteOff :: Ptr b0 -> Int -> IO (a, b, c)

pokeByteOff :: Ptr b0 -> Int -> (a, b, c) -> IO ()

peek :: Ptr (a, b, c) -> IO (a, b, c)

poke :: Ptr (a, b, c) -> (a, b, c) -> IO ()

(Storable a, Storable b, Storable c, Storable d) => Storable (a, b, c, d) Source # 
Instance details

Methods

sizeOf :: (a, b, c, d) -> Int

alignment :: (a, b, c, d) -> Int

peekElemOff :: Ptr (a, b, c, d) -> Int -> IO (a, b, c, d)

pokeElemOff :: Ptr (a, b, c, d) -> Int -> (a, b, c, d) -> IO ()

peekByteOff :: Ptr b0 -> Int -> IO (a, b, c, d)

pokeByteOff :: Ptr b0 -> Int -> (a, b, c, d) -> IO ()

peek :: Ptr (a, b, c, d) -> IO (a, b, c, d)

poke :: Ptr (a, b, c, d) -> (a, b, c, d) -> IO ()