haXe API Documentation
Back | Index
private class haxe.ds.VectorImpl
import haxe.ds.Vector
Available in flash8, neko, js, flash, php, cpp
static var length(dynamic,null) : Int
static inline function _new(length : Int) : VectorData<haxe.ds.Vector.T>

Creates a new Vector of length length.

Initially this Vector contains length neutral elements: - always null on dynamic targets - 0, 0.0 or false for Int, Float and Bool respectively on static targets - null for other types on static targets

If length is less than or equal to 0, the result is unspecified.

static function blit<T>(src : haxe.ds.Vector<T>, srcPos : Int, dest : haxe.ds.Vector<T>, destPos : Int, len : Int) : Void
static inline function fromArrayCopy<T>(array : Array<T>) : haxe.ds.Vector<T>

Creates a new Vector by copying the elements of array.

This always creates a copy, even on platforms where the internal representation is Array.

The elements are not copied and retain their identity, so ai == Vector.fromArrayCopy(a).get(i) is true for any valid i.

If array is null, the result is unspecified.

static inline function fromData<T>(data : VectorData<T>) : haxe.ds.Vector<T>

Initializes a new Vector from data.

Since data is the internal representation of Vector, this is a no-op.

If data is null, the corresponding Vector is also null.

static inline function get(this : VectorData<haxe.ds.Vector.T>, index : Int) : Null<haxe.ds.Vector.T>
static inline function set(this : VectorData<haxe.ds.Vector.T>, index : Int, val : haxe.ds.Vector.T) : haxe.ds.Vector.T
static inline function toData(this : VectorData<haxe.ds.Vector.T>) : VectorData<haxe.ds.Vector.T>
Back | Index