|Copyright||(c) The FFI task force 2001|
|License||BSD-style (see the file libraries/base/LICENSE)|
Utilities for primitive marshaling
The memory is freed when
f terminates (either normally or via an exception), so the pointer passed to
f must not be used after this.
Allocate a block of memory and marshal a value into it (the combination of
poke). The size of the area allocated is determined by the
sizeOf method from the instance of
Storable for the appropriate type.
Convert a Haskell
Bool to its numeric representation
Convert a Boolean in numeric representation to a Haskell value
Allocate storage and marshal a storable value wrapped into a
withXXX combinator over a list of objects, yielding a list of marshalled objects
(argument order: destination, source)
Copies the given number of bytes from the second area (source) into the first (destination); the copied areas may not overlap
Copies the given number of bytes from the second area (source) into the first (destination); the copied areas may overlap
Fill a given number of bytes in memory area with a byte value.
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).