[Haskell-cafe] FFI and modifying haskell memory

Joel Reymont joelr1 at gmail.com
Sat Oct 29 08:27:25 EDT 2005


So both with and allocaBytes allocate bytes on the stack then, correct?

On Oct 29, 2005, at 1:13 PM, Sven Panne wrote:

> In a nutshell: "with" is not better than "allocaBytes", it is  
> something
> different. "with" can be used to pass a Storable Haskell value in a  
> temporary
> memory buffer to a function, while "allocaBytes" only does plain  
> temporary
> memory allocation.

--
http://wagerlabs.com/







More information about the Haskell-Cafe mailing list