W3cubDocs

/Haxe C#

NativeArray<T>

package cs

extends Array

Available on cs

Represents a C# fixed-size Array (T[])

Constructor

new (len:Int)

Allocates a new array with size len

Variables

read only length:Int

Alias to array's Length property. Returns the size of the array

Methods

inline iterator ():NativeArrayIterator<T>

Returns an iterator so it's possible to use for with C#'s NativeArray

Static methods

static Reverse (arr:Array):Void

static make<T> (elements:Rest<T>):NativeArray<T>

Creates a new array with the specified elements.

Usage:

var elements = NativeArray.make(1,2,3,4,5,6);

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/cs/NativeArray.html