missing-foreign-0.1.1: Convenience functions for FFI work

Portabilityportable
Stabilityprovisional
Maintainerdagitj@gmail.com

Foreign.Marshal.MissingUtils

Contents

Description

Utilities for primitive marshaling

Synopsis

General marshalling utilities

Haskellish interface to memcpy and memove

(argument order: destination, source)

copy :: Storable a => Ptr a -> Ptr a -> IO ()Source

Uses sizeOf to copy bytes from the second area (source) into the first (destination); the copied areas may not overlap

move :: Storable a => Ptr a -> Ptr a -> IO ()Source

Uses sizeOf to copy bytes from the second area (source) into the first (destination); the copied areas may overlap