Patch: add ByteString.Unsafe.unsafePackMallocCStringLen
Lauri Alanko
la at iki.fi
Wed Jun 20 11:40:56 CEST 2012
Hello.
There's a minor lapse in Data.ByteString.Unsafe:
unsafePackMallocCString, unlike the other unsafePack* -functions,
doesn't have a variant with an explicit length. This is useful when
interfacing with C libraries that return a blob of binary data that
the caller must free. Attached is a darcs patch that adds it.
Lauri
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unsafePackMallocCStringLen.patch
Type: text/x-patch
Size: 17562 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/libraries/attachments/20120620/6e5f9de1/attachment.bin>
More information about the Libraries
mailing list