[Haskell-cafe] Haskell FFI Question

ye yan haskell.ye.yan at gmail.com
Fri Sep 19 06:08:09 UTC 2014


Another question is how to pass a raw buffer (binary content) from Haskell 
to C functions? Assume we are using ByteString as the content container in 
Haskell.

Is there a way to convert ByteString to C void * ?

On Friday, September 19, 2014 2:02:29 PM UTC+9:30, ye yan wrote:
>
> I have been play around with Haskell FFI. My question is for ByteString 
> (Strict) is there a trailing null append to it when pass to it C functions?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140918/5189bb86/attachment.html>


More information about the Haskell-Cafe mailing list