haskus-binary-1.5: Haskus binary format manipulation

Safe HaskellNone
LanguageHaskell2010

Haskus.Memory.Allocator.Malloc

Description

Malloc memory allocator

Synopsis

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`.

makeFinalized :: MonadIO m => BufferME -> m BufferMEF Source #

Make a buffer finalized with `free`

freeBuffer :: MonadIO m => BufferME -> m () Source #

Free a malloc-ed Buffer