Safe Haskell | None |
---|---|
Language | Haskell2010 |
Memory utilities
Synopsis
- memCopy :: MonadIO m => Ptr a -> Ptr b -> Word64 -> m ()
- memSet :: MonadIO m => Ptr a -> Word64 -> Word8 -> m ()
- allocaArrays :: (MonadInIO m, Storable s, Integral a) => [a] -> ([Ptr s] -> m b) -> m b
- peekArrays :: (MonadIO m, Storable s, Integral a) => [a] -> [Ptr s] -> m [[s]]
- pokeArrays :: (MonadIO m, Storable s) => [Ptr s] -> [[s]] -> m ()
- withArrays :: (MonadInIO m, Storable s) => [[s]] -> ([Ptr s] -> m b) -> m b
- withMaybeOrNull :: (Storable a, MonadInIO m) => Maybe a -> (Ptr a -> m b) -> m b
- memcpy# :: Addr# -> Addr# -> Int# -> IO ()
Documentation
allocaArrays :: (MonadInIO m, Storable s, Integral a) => [a] -> ([Ptr s] -> m b) -> m b Source #
Allocate several arrays
peekArrays :: (MonadIO m, Storable s, Integral a) => [a] -> [Ptr s] -> m [[s]] Source #
Peek several arrays
withArrays :: (MonadInIO m, Storable s) => [[s]] -> ([Ptr s] -> m b) -> m b Source #
Allocate several arrays