[Haskell-cafe] MutableByteArray as a Ptr
Joel Reymont
joelr1 at gmail.com
Fri Oct 7 16:49:56 EDT 2005
Folks,
http://www.haskell.org/hdirect/ffi-6.html
"GHC's ByteArray and MutableByteArray primitive types are (im)mutable
chunks of memory allocated on the Haskell heap, and pointers to these
can be passed to foreign imported external functions provided they
are marked as unsafe."
Does this mean I can pass a MutableByteArray as an argument to
Storable's peek and poke?
Thanks, Joel
--
http://wagerlabs.com/idealab
More information about the Haskell-Cafe
mailing list