[PATCH 1/2] add calloc and callocBytes to Foreign.Marshal.Alloc

Jason Dagit dagitj at gmail.com
Sat Apr 23 00:33:24 CEST 2011

On Fri, Apr 22, 2011 at 1:17 PM, Jason Dagit <dagitj at gmail.com> wrote:


It doesn't have to be a binding.  If you'd prefer to provide a Haskell
> implementation in terms of malloc/copyBytes that sounds fine too.  I wasn't
> sure how to best do that so a binding seemed the most straightforward.

I was looking at this after I sent the email.  copyBytes and moveBytes are
bindings to memcpy and memmove, not memset.

I don't see a binding to memset in Foreign.  Perhaps that should be added as

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20110422/b6ca3d67/attachment.htm>

More information about the Libraries mailing list