Safe Haskell | None |
---|---|
Language | Haskell2010 |
Malloc memory allocator
Documentation
newBuffer :: MonadIO m => Word -> m (Maybe BufferME) Source #
Allocate a new Buffer using system `malloc
`
newFinalizedBuffer :: MonadIO m => Word -> m (Maybe BufferMEF) Source #
Allocate a new finalized buffer using system `malloc
` and finalized with
`free
`.
freeBuffer :: MonadIO m => BufferME -> m () Source #
Free a malloc-ed Buffer