mkrussel
06/11/2021, 2:40 PMmemScoped {
val errorRef = alloc<ObjCObjectVar<NSError?>>()
val result = function(errorRef.ptr)
}
But I get error message saying
None of the following functions can be called with the arguments supplied:
public open fun alloc(size: Int, align: Int): NativePointed defined in kotlinx.cinterop.MemScope
public final fun alloc(size: Long, align: Int): NativePointed defined in kotlinx.cinterop.MemScope
Dominaezzz
06/11/2021, 2:51 PMmkrussel
06/11/2021, 3:22 PM