You do this, by declaring the passed u8vector as a scheme-object in the c-lambda definition.
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
_______________________________________________
Gambit-list mailing list
Gambit-list@iro.umontreal.ca
https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list