Patch: add ByteString.Unsafe.unsafePackMallocCStringLen

20 Jun
2012
20 Jun
'12
5:40 a.m.
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

20 Jun
20 Jun
12:40 p.m.
On 20 June 2012 11:40, Lauri Alanko
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.
+1
4721
Age (days ago)
4721
Last active (days ago)
1 comments
2 participants
participants (2)
-
Bas van Dijk
-
Lauri Alanko