Ronie is working on unifying all the api and proposing one syntax mechanism for
������ - nativeBoost back-end
������ - FFI
������ and may be Alien
The FFI situation is not good and we know we should improve it.
On 29/10/14 20:18, Thomas Bany wrote:
Looking at FFI library, you both have ExternalAddress (for the struct with char*) and ExternalType (for the struct with char[5]) that you can use. For the later solution, it still looks like you should define a specific 5 bytes ArrayOf5Char type.Oops, sorry, I was misslead by Steph reply.Some of the comments might still hold. For the time: ���05:45��� code to work, you would need FFI to handle all the hassle of memory management and actually allocate the memory for 5 characters and copying it. I never used FFI but I doubt it does this.
2014-10-29 18:34 GMT+01:00 Annick Fron <list@afceurope.com>:
I can���t use NativeBoost on the Raspberry, I would be glad if I could !!!
Le 29 oct. 2014 �� 12:18, stepharo <stepharo@free.fr> a ��crit :
> did you read the NativeBoost tutorial on the PharoForTheEntreprise book?
> If you do please report potential mistakes so that we can improve.
>
>
> On 29/10/14 05:59, Annick Fron wrote:
>> I I have a C struct with a char*
>>
>> struct result {
>>�� �� �� char* time }
>>
>> I define an ExternalStructure in FFI , with one field of type char* (note that the syntax char [5] is not accepted ! ).
>>
>> defineFields generates the accessors time and time:
>>
>> If I use
>> time: ���05:45���
>>
>> I get an error.
>> How do I set a string value in an ExternalStructure ?
>>
>> Annick
>>
>>
>>
>>
>>
>
>