W3cubDocs

/Haxe C#

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

@:impl read only acc:PointerAccess<T>

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

Methods

@:impl inline add (this:Pointer<T>):Pointer<T>

Static variables

@:impl static read only acc:PointerAccess<T>

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

Static methods

@:impl static inline add (this:Pointer<T>):Pointer<T>

@:noExpr @:op(A + B) static addIp<T> (lhs:Pointer<T>, rhs:Int):Pointer<T>

@:noExpr @:op(A + B) static addIp<T> (lhs:Pointer<T>, rhs:Int):Pointer<T>

@:noExpr @:op(A + B) static addp<T> (lhs:Pointer<T>, rhs:Int64):Pointer<T>

@:noExpr @:op(A + B) static addp<T> (lhs:Pointer<T>, rhs:Int64):Pointer<T>

@:noExpr @:op(A & B) static andIp<T> (lhs:Pointer<T>, rhs:Int):Pointer<T>

@:noExpr @:op(A & B) static andIp<T> (lhs:Pointer<T>, rhs:Int):Pointer<T>

@:noExpr @:op(A & B) static andp<T> (lhs:Pointer<T>, rhs:Int64):Pointer<T>

@:noExpr @:op(A & B) static andp<T> (lhs:Pointer<T>, rhs:Int64):Pointer<T>

@:noExpr @:op(~A) static bnegp<T> (t:Pointer<T>):Pointer<T>

@:noExpr @:op(~A) static bnegp<T> (t:Pointer<T>):Pointer<T>

@:noExpr @:op(A / B) static divIp<T> (lhs:Pointer<T>, rhs:Int):Pointer<T>

@:noExpr @:op(A / B) static divIp<T> (lhs:Pointer<T>, rhs:Int):Pointer<T>

@:noExpr @:op(A / B) static divp<T> (lhs:Pointer<T>, rhs:Int64):Pointer<T>

@:noExpr @:op(A / B) static divp<T> (lhs:Pointer<T>, rhs:Int64):Pointer<T>

@:noExpr @:arrayAccess static getIp<T> (p:Pointer<T>, at:Int):T

@:noExpr @:arrayAccess static getIp<T> (p:Pointer<T>, at:Int):T

@:noExpr @:arrayAccess static getp<T> (p:Pointer<T>, at:Int64):T

@:noExpr @:arrayAccess static getp<T> (p:Pointer<T>, at:Int64):T

@:noExpr @:op(A >= B) static gtep<T> (lhs:Pointer<T>, rhs:Pointer<T>):Bool

@:noExpr @:op(A >= B) static gtep<T> (lhs:Pointer<T>, rhs:Pointer<T>):Bool

@:noExpr @:op(A > B) static gtp<T> (lhs:Pointer<T>, rhs:Pointer<T>):Bool

@:noExpr @:op(A > B) static gtp<T> (lhs:Pointer<T>, rhs:Pointer<T>):Bool

@:noExpr @:op(A <= B) static ltep<T> (lhs:Pointer<T>, rhs:Pointer<T>):Bool

@:noExpr @:op(A <= B) static ltep<T> (lhs:Pointer<T>, rhs:Pointer<T>):Bool

@:noExpr @:op(A < B) static ltp<T> (lhs:Pointer<T>, rhs:Pointer<T>):Bool

@:noExpr @:op(A < B) static ltp<T> (lhs:Pointer<T>, rhs:Pointer<T>):Bool

@:noExpr @:op(A % B) static modIp<T> (lhs:Pointer<T>, rhs:Int):Pointer<T>

@:noExpr @:op(A % B) static modIp<T> (lhs:Pointer<T>, rhs:Int):Pointer<T>

@:noExpr @:op(A % B) static modp<T> (lhs:Pointer<T>, rhs:Int64):Pointer<T>

@:noExpr @:op(A % B) static modp<T> (lhs:Pointer<T>, rhs:Int64):Pointer<T>

@:noExpr @:op(A * B) static mulIp<T> (lhs:Pointer<T>, rhs:Int):Pointer<T>

@:noExpr @:op(A * B) static mulIp<T> (lhs:Pointer<T>, rhs:Int):Pointer<T>

@:noExpr @:op(A * B) static mulp<T> (lhs:Pointer<T>, rhs:Int64):Pointer<T>

@:noExpr @:op(A * B) static mulp<T> (lhs:Pointer<T>, rhs:Int64):Pointer<T>

@:noExpr @:op(A | B) static orIp<T> (lhs:Pointer<T>, rhs:Int):Pointer<T>

@:noExpr @:op(A | B) static orIp<T> (lhs:Pointer<T>, rhs:Int):Pointer<T>

@:noExpr @:op(A | B) static orp<T> (lhs:Pointer<T>, rhs:Int64):Pointer<T>

@:noExpr @:op(A | B) static orp<T> (lhs:Pointer<T>, rhs:Int64):Pointer<T>

@:noExpr @:op(--A) static postnn<T> (t:Pointer<T>):Pointer<T>

@:noExpr @:op(--A) static postnn<T> (t:Pointer<T>):Pointer<T>

@:noExpr @:op(++A) static postpp<T> (t:Pointer<T>):Pointer<T>

@:noExpr @:op(++A) static postpp<T> (t:Pointer<T>):Pointer<T>

@:noExpr @:op(A--) static prenn<T> (t:Pointer<T>):Pointer<T>

@:noExpr @:op(A--) static prenn<T> (t:Pointer<T>):Pointer<T>

@:noExpr @:op(A++) static prepp<T> (t:Pointer<T>):Pointer<T>

@:noExpr @:op(A++) static prepp<T> (t:Pointer<T>):Pointer<T>

@:noExpr @:arrayAccess static setIp<T> (p:Pointer<T>, at:Int, val:T ):T

@:noExpr @:arrayAccess static setIp<T> (p:Pointer<T>, at:Int, val:T ):T

@:noExpr @:arrayAccess static setp<T> (p:Pointer<T>, at:Int64, val:T ):T

@:noExpr @:arrayAccess static setp<T> (p:Pointer<T>, at:Int64, val:T ):T

@:noExpr @:op(A << B) static shlIp<T> (lhs:Pointer<T>, rhs:Int):Pointer<T>

@:noExpr @:op(A << B) static shlIp<T> (lhs:Pointer<T>, rhs:Int):Pointer<T>

@:noExpr @:op(A << B) static shlp<T> (lhs:Pointer<T>, rhs:Int64):Pointer<T>

@:noExpr @:op(A << B) static shlp<T> (lhs:Pointer<T>, rhs:Int64):Pointer<T>

@:noExpr @:op(A >> B) static shrIp<T> (lhs:Pointer<T>, rhs:Int):Pointer<T>

@:noExpr @:op(A >> B) static shrIp<T> (lhs:Pointer<T>, rhs:Int):Pointer<T>

@:noExpr @:op(A >> B) static shrp<T> (lhs:Pointer<T>, rhs:Int64):Pointer<T>

@:noExpr @:op(A >> B) static shrp<T> (lhs:Pointer<T>, rhs:Int64):Pointer<T>

@:noExpr @:op(A - B) static subIp<T> (lhs:Pointer<T>, rhs:Int):Pointer<T>

@:noExpr @:op(A - B) static subIp<T> (lhs:Pointer<T>, rhs:Int):Pointer<T>

@:noExpr @:op(A - B) static subp<T> (lhs:Pointer<T>, rhs:Int64):Pointer<T>

@:noExpr @:op(A - B) static subp<T> (lhs:Pointer<T>, rhs:Int64):Pointer<T>

@:noExpr @:op(A ^ B) static xorIp<T> (lhs:Pointer<T>, rhs:Int):Pointer<T>

@:noExpr @:op(A ^ B) static xorIp<T> (lhs:Pointer<T>, rhs:Int):Pointer<T>

@:noExpr @:op(A ^ B) static xorp<T> (lhs:Pointer<T>, rhs:Int64):Pointer<T>

@:noExpr @:op(A ^ B) static xorp<T> (lhs:Pointer<T>, rhs:Int64):Pointer<T>

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