Safe Haskell | Safe |
---|---|
Language | Haskell98 |
- class GStorable f where
- sizeOfDefault :: (Generic a, GStorable (Rep a)) => a -> Int
- alignmentDefault :: (Generic a, GStorable (Rep a)) => a -> Int
- peekDefault :: (Generic a, GStorable (Rep a)) => Ptr a -> IO a
- peekByteOffDefault :: (Generic a, GStorable (Rep a)) => Ptr a -> Int -> IO a
- peekElemOffDefault :: (Generic a, GStorable (Rep a)) => Ptr a -> Int -> IO a
- pokeDefault :: (Generic a, GStorable (Rep a)) => Ptr a -> a -> IO ()
- pokeByteOffDefault :: (Generic a, GStorable (Rep a)) => Ptr a -> Int -> a -> IO ()
- pokeElemOffDefault :: (Generic a, GStorable (Rep a)) => Ptr a -> Int -> a -> IO ()
- newtype StorableWrapper a = StorableWrapper {
- unStorableWrapper :: a
Generic Storable class
class GStorable f where Source #
Generic Storable class
gsizeOf :: f a -> Int Source #
galignment :: f a -> Int Source #
gpeek :: Ptr (f a) -> IO (f a) Source #
gpeekByteOff :: Ptr (f a) -> Int -> IO (f a) Source #
gpeekElemOff :: Ptr (f a) -> Int -> IO (f a) Source #
gpoke :: Ptr (f a) -> f a -> IO () Source #
Default functions
Wrapper
newtype StorableWrapper a Source #