Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data MLockedForeignPtr a
- withMLockedForeignPtr :: forall a b. MLockedForeignPtr a -> ( Ptr a -> IO b) -> IO b
- allocMLockedForeignPtr :: Storable a => IO ( MLockedForeignPtr a)
- finalizeMLockedForeignPtr :: forall a. MLockedForeignPtr a -> IO ()
- traceMLockedForeignPtr :: ( Storable a, Show a) => MLockedForeignPtr a -> IO ()
High-level memory management
data MLockedForeignPtr a Source #
Foreign pointer to securely allocated memory.
Instances
NoThunks ( MLockedForeignPtr a) Source # | |
Defined in Cardano.Crypto.Libsodium.Memory.Internal |
withMLockedForeignPtr :: forall a b. MLockedForeignPtr a -> ( Ptr a -> IO b) -> IO b Source #
allocMLockedForeignPtr :: Storable a => IO ( MLockedForeignPtr a) Source #
Allocate secure memory using
c_sodium_malloc
.
finalizeMLockedForeignPtr :: forall a. MLockedForeignPtr a -> IO () Source #
traceMLockedForeignPtr :: ( Storable a, Show a) => MLockedForeignPtr a -> IO () Source #
Deprecated: Don't leave traceMLockedForeignPtr in production