Le 13/04/2016 15:23, Rob Rothwell a écrit : > On Wed, Apr 13, 2016 at 8:52 AM, Esteban Lorenzano <esteba...@gmail.com > <mailto: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? >
This is pretty new but there is some thread in the mailing list about it. Esteban also begun a documentation: https://ci.inria.fr/pharo-contribution/view/Books/job/PharoBookWorkInProgress/lastSuccessfulBuild/artifact/book-result/UnifiedFFI/UnifiedFFI.pdf > Thank you, > > Rob -- Cyril Ferlicot http://www.synectique.eu 165 Avenue Bretagne Lille 59000 France
signature.asc
Description: OpenPGP digital signature