as3.JA_D.as Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtransc-rt Show documentation
Show all versions of jtransc-rt Show documentation
JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.
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];
}
}
}
}