Pointer

Pointer<T>

package cs

from PointerAccess<T>, Int64 to PointerAccess<T>

Available on cs

This type represents pointer types for C# function parameters. It should only be used inside an unsafe context (not checked by the Haxe compiler)

C# code:

int[] src;
fixed (int* pSrc = src)
{
	...
}

Haxe code:

var src:NativeArray<Int>;
cs.Lib.fixed({
	var pSrc:cs.Pointer<Int> = cs.Lib.pointerOfArray(src);
	...
});

Variables

read only 登录查看完整内容