cardano-crypto-class-2.0.0.0.1: Type classes abstracting over cryptography primitives for Cardano
Safe Haskell Safe-Inferred
Language Haskell2010

Cardano.Foreign

Description

Utilities for FFI

Synopsis

Sized pointer

Low-level C functions

c_memcpy :: Ptr a -> Ptr a -> CSize -> IO ( Ptr ()) Source #

void *memcpy(void *dest, const void *src, size_t n);

Note: this is safe foreign import

c_memset :: Ptr a -> Int -> CSize -> IO ( Ptr ()) Source #

void *memset(void *s, int c, size_t n);

Note: for sure zeroing memory use c_sodium_memzero .