这是我正在尝试使用的 C 函数的签名(它生成二进制数据数组):
long get_output( const unsigned char ** );
我将其映射为:
fun output = get_output( UInt8** ): Int32
在 C 中使用它的工作示例:
const unsigned char * data;
get_output( &data );
但在水晶中:
data = uninitialized UInt8
MyLib.output( pointerof( pointerof( data ) ) ) # ERR: pointerof of pointerof not allowed