[gambit-list] How to pass a u8vector to the FFI
Marc Feeley
feeley at iro.umontreal.ca
Tue Mar 30 10:44:34 EDT 2010
On 2010-03-30, at 10:39 AM, Bradley Lucier wrote:
> I believe you can use something like
>
> ___CAST(___sU8VECTOR*,___BODY_AS(obj,___tSUBTYPED))
The first argument to ___CAST must be a type... but ___sU8VECTOR is the subtype tag (an integer constant). So you want:
___CAST(___U8*,___BODY_AS(obj,___tSUBTYPED))
because ___U8 is defined as an unsigned char (on most platforms) by gambit.h .
Marc
More information about the Gambit-list
mailing list