All Downloads are FREE. Search and download functionalities are using the official Maven repository.

as3.JA_D.as Maven / Gradle / Ivy

Go to download

JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.

There is a newer version: 0.6.8
Show newest version
package {
public class JA_D extends JA_0 {
	public var data: Vector.;

	public function JA_D(length: int, descriptor: String = '[D') {
		super(length, descriptor);
		this.data = new Vector.(length, true);
	}

	public function set(index: int, value: Number): void {
		data[index] = value;
	}

	public function get(index: int): Number {
		return data[index];
	}

	override public function arraycopy(srcPos: int, dst: JA_0, dstPos: int, len: int, overlapping: Boolean): void {
		var rdst: Vector. = (dst as JA_D).data;
		var n: int;
		if (overlapping) {
			for (n = len - 1; n >= 0; n--) rdst[dstPos + n] = this.data[srcPos + n];
		} else {
			for (n = 0; n < len; n++) rdst[dstPos + n] = this.data[srcPos + n];
		}
	}
}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy