30 Mar
2010
30 Mar
'10
10:11
Hallo, 2010/3/30 Mikael <mikael.trash@gmail.com>:
You do this, by declaring the passed u8vector as a scheme-object in the c-lambda definition. The memory pointer to the u8vector's contents in the C code is resolved by void *u8vectorptr = ___CAST(void*,&___FETCH_U8(___BODY(theu8vectorschemeobjectvariable),___INT(0))); Remember that the pointer is only to be kept until the next return to Scheme.
AFAIK you do not need the last ___INT(). Cheers, -- -alex @asandroq http://www.ventonegro.org/