elemental2.core.Float64Array Maven / Gradle / Ivy
package elemental2.core;
import jsinterop.annotations.JsFunction;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
import jsinterop.base.Js;
@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public class Float64Array extends TypedArray {
@JsType(isNative = true, name = "?", namespace = JsPackage.GLOBAL)
public interface ConstructorLengthUnionType {
@JsOverlay
static Float64Array.ConstructorLengthUnionType of(Object o) {
return Js.cast(o);
}
@JsOverlay
default ArrayBuffer asArrayBuffer() {
return Js.cast(this);
}
@JsOverlay
default ArrayBufferView asArrayBufferView() {
return Js.cast(this);
}
@JsOverlay
default int asInt() {
return Js.asInt(this);
}
@JsOverlay
default int[] asIntArray() {
return Js.cast(this);
}
@JsOverlay
default SharedArrayBuffer asSharedArrayBuffer() {
return Js.cast(this);
}
@JsOverlay
default boolean isArrayBuffer() {
return (Object) this instanceof ArrayBuffer;
}
@JsOverlay
default boolean isArrayBufferView() {
return (Object) this instanceof ArrayBufferView;
}
@JsOverlay
default boolean isInt() {
return (Object) this instanceof Double;
}
@JsOverlay
default boolean isIntArray() {
return (Object) this instanceof Object[];
}
@JsOverlay
default boolean isSharedArrayBuffer() {
return (Object) this instanceof SharedArrayBuffer;
}
}
@JsFunction
public interface FromMapFn {
double onInvoke(double p0);
}
@JsOverlay
public static final double BYTES_PER_ELEMENT = Float64Array__Constants.BYTES_PER_ELEMENT;
public static native Float64Array from(
double[] source, Float64Array.FromMapFn mapFn, S this_);
public static native Float64Array from(double[] source, Float64Array.FromMapFn mapFn);
public static native Float64Array from(double[] source);
public static native Float64Array of(double... var_args);
public Float64Array(ArrayBuffer length, int byteOffset, int length0) {}
public Float64Array(ArrayBuffer length, int byteOffset) {}
public Float64Array(ArrayBuffer length) {}
public Float64Array(ArrayBufferView length, int byteOffset, int length0) {}
public Float64Array(ArrayBufferView length, int byteOffset) {}
public Float64Array(ArrayBufferView length) {}
public Float64Array(
Float64Array.ConstructorLengthUnionType length, int byteOffset, int length0) {}
public Float64Array(Float64Array.ConstructorLengthUnionType length, int byteOffset) {}
public Float64Array(Float64Array.ConstructorLengthUnionType length) {}
public Float64Array(SharedArrayBuffer length, int byteOffset, int length0) {}
public Float64Array(SharedArrayBuffer length, int byteOffset) {}
public Float64Array(SharedArrayBuffer length) {}
public Float64Array(int length, int byteOffset, int length0) {}
public Float64Array(int[] length, int byteOffset, int length0) {}
public Float64Array(int length, int byteOffset) {}
public Float64Array(int[] length, int byteOffset) {}
public Float64Array(int length) {}
public Float64Array(int[] length) {}
}