On Wed, Apr 13, 2016 at 8:52 AM, Esteban Lorenzano <esteba...@gmail.com>
wrote:

> Hi,
>
> Just checked… contrary to what I believed, strings are passed by copy (not
> by reference, as ByteArray)… logical for safety but with penalty on
> performance... so yes, using a ByteArray is the correct way to do it. (Or
> an external value holder, which is a glorified way for passing a ByteArray,
> but this probably do not work fine for “char*" because I didn’t preview it
> :P)
>
> Hello,

I've never used UFFI before, but would like to call setxattr and getxattr
in LibC on OS X (which also pass strings).  I don't have a lot of Mac or
Unix background, but I have past experience fiddling with parameters to
call external Windows libraries from VB.

Is there any general information about UFFI usage anywhere, or is reviewing
this thread my best place to start?

Thank you,

Rob

Reply via email to