Spec-Zone.ru › Haxe C#

Pointer<T>

package cs

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

Доступно в cs

Этот тип представляет указатели для параметров функций C#. Его следует использовать только внутри небезопасного контекста (не проверяется компилятором Haxe).

Код C#:

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

Код Haxe:

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

Статические методы

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>

Переменные

read onlyacc:PointerAccess<T>

Возвращает тип cs.PointerAccess, который, в свою очередь, позволяет получить доступ к полям базового указателя.

Методы

inlineadd(i:Int):Pointer<T>

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API