[Haskell] Foreign.Marshal.Alloc questions
Chris Kuklewicz
haskell at list.mightyreason.com
Wed Aug 9 18:36:48 EDT 2006
For the allocation functions in Foreign.Marshall.Alloc, are the function
contracts that return new pointers such that the pointers are never nullPtr, or
is it prudent to always check the new ptr?
I can see on GHC than allocaBytes uses newPinnedByteArray# but I have not
tracked down the source file for that to read it.
--
Chris Kuklewicz
More information about the Haskell
mailing list