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);
	...
});

Static methods

staticaddIp<T>(lhs:Pointer<T>, rhs:Int):Pointer<T>

staticaddp<T>(lhs:Pointer<T>, rhs:Int64):Pointer<T>

staticandIp<T>(lhs:Pointer<T>, rhs:Int):Pointer<T>

staticandp<T>(lhs:Pointer<T>, rhs:Int64):Pointer<T>

staticbnegp<T>(t:Pointer<T>):Pointer<T>

staticdivIp<T>(lhs:Pointer<T>, rhs:Int):Pointer<T>

staticdivp<T>(lhs:Pointer<T>, rhs:Int64):Pointer<T>

staticgetIp<T>(p:Pointer<T>, at:Int):T

staticgetp<T>(p:Pointer<T>, at:Int64):T

staticgtep<T>(lhs:Pointer<T>, rhs:Pointer<T>):Bool

staticgtp<T>(lhs:Pointer<T>, rhs:Pointer<T>):Bool

staticltep<T>(lhs:Pointer<T>, rhs:Pointer<T>):Bool

staticltp<T>(lhs:Pointer<T>, rhs:Pointer<T>):Bool

staticmodIp<T>(lhs:Pointer<T>, rhs:Int):Pointer<T>

staticmodp<T>(lhs:Pointer<T>, rhs:Int64):Pointer<T>

staticmulIp<T>(lhs:Pointer<T>, rhs:Int):Pointer<T>

staticmulp<T>(lhs:Pointer<T>, rhs:Int64):Pointer<T>

staticorIp<T>(lhs:Pointer<T>, rhs:Int):Pointer<T>

staticorp<T>(lhs:Pointer<T>, rhs:Int64):Pointer<T>

staticpostnn<T>(t:Pointer<T>):Pointer<T>

staticpostpp<T>(t:Pointer<T>):Pointer<T>

staticprenn<T>(t:Pointer<T>):Pointer<T>

staticprepp<T>(t:Pointer<T>):Pointer<T>

staticsetIp<T>(p:Pointer<T>, at:Int, val:T):T

staticsetp<T>(p:Pointer<T>, at:Int64, val:T):T

staticshlIp<T>(lhs:Pointer<T>, rhs:Int):Pointer<T>

staticshlp<T>(lhs:Pointer<T>, rhs:Int64):Pointer<T>

staticshrIp<T>(lhs:Pointer<T>, rhs:Int):Pointer<T>

staticshrp<T>(lhs:Pointer<T>, rhs:Int64):Pointer<T>

staticsubIp<T>(lhs:Pointer<T>, rhs:Int):Pointer<T>

staticsubp<T>(lhs:Pointer<T>, rhs:Int64):Pointer<T>

staticxorIp<T>(lhs:Pointer<T>, rhs:Int):Pointer<T>

staticxorp<T>(lhs:Pointer<T>, rhs:Int64):Pointer<T>

Variables

read onlyacc:PointerAccess<T>

Returns a cs.PointerAccess type, which in turn allows the underlying Pointer's fields to be accessed.

Methods

inlineadd(i:Int):Pointer<T>

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/cs/Pointer.html