【发布时间】:2016-12-17 11:16:47
【问题描述】:
这是我尝试使用的 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
【问题讨论】:
标签: crystal-lang