passing a vector to FFI functions
30 Mar
2010
30 Mar
'10
08:20
Hi! Is there a way to pass a u8-vector to a FFI interface somehow? The way I expect this to work is through a (pointer unsigned-char), but it obviously doesn't work, claiming a proper C pointer. I would like to be able to build this arrays from Scheme code. Is there a way? Currently I have to call a FFI function to set char by char, calling the c-lambda function too many times. One thing that could work is something that converts u8-vectors to unsigned char* arrays, does that exist in Gambit? Thanks, Álvaro
Afficher les réponses par date
5910
Âge (en jours)
5910
Dernière activité (en jours)
0 commentaires
1 participants
participants (1)
-
Álvaro Castro-Castilla