missing-foreign-0.1.1: Convenience functions for FFI work

Copyright(c) Jason Dagit 2001
LicenseBSD-style (see the file LICENSE)
Maintainerdagitj@gmail.com
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

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 () #

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 () #

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