W3cubDocs

/Haxe C++

NativeArray

package cpp

Available on cpp

Static methods

static inline address<T> (inArray:Array<T>, inIndex:Int):Pointer<T>

@:has_untyped static inline blit<T> (ioDestArray:Array<T>, inDestElement:Int, inSourceArray:Array<T>, inSourceElement:Int, inElementCount:Int):Void

@:nativeStaticExtension static capacity<T> (inArray:Array<T>):Int

@:native("_hx_create_array_length") static create<T> (length:Int):Array<T>

@:has_untyped static inline getBase (inArray:Array<Dynamic>):ArrayBase

@:nativeStaticExtension static getElementSize<T> (inArray:Array<T>):Int

@:nativeStaticExtension static memcmp<T> (inArrayA:Array<T>, inArrayB:Array<T>):Int

@:nativeStaticExtension static reserve<T> (inArray:Array<T>, inElements:Int):Void

@:native("_hx_reslove_virtual_array") static resolveVirtualArray (inArray:Array<Dynamic>):Dynamic

@:nativeStaticExtension static setData<T> (inArray:Array<T>, inData:Pointer<T>, inElementCount:Int):Void

@:native("_hx_array_set_size_exact") static setSize<T> (ioArray:Array<T>, inSize:Int):Array<T>

@:nativeStaticExtension static setUnmanagedData<T> (inArray:Array<T>, inData:ConstPointer<T>, inElementCount:Int):Void

@:native("_hx_array_unsafe_get") static unsafeGet<T> (inDestArray:Array<T>, inIndex:Int):T

@:has_untyped @:native("_hx_array_unsafe_set") static inline unsafeSet<T> (ioDestArray:Array<T>, inIndex:Int, inValue:T ):T

@:nativeStaticExtension static zero<T> (ioDestArray:Array<T>, ?inFirst:Int, ?inElements:Int):Void

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