
13 Jul
2010
13 Jul
'10
12:49 a.m.
On Mon, Jul 12, 2010 at 6:54 PM, John Meacham
Hi, is a StablePtr what you are after?
Indeed, it looks like StablePtr will get me what I want. It's a little less convenient than FunPtr because I'm already doing some finalization of FunPtrs and I can reuse the same callback, but it looks like it's specifically documented to do what I want, which is reassuring. In any case, memcpy still wins out on simplicity. If I ever need to pass a pointer larger than 32mb and have both haskell and C manage the memory, I'll look into StablePtr.