/** * Creates a Int32Array projected onto the given ArrayBuffer. * * @param arrayBuffer The ArrayBuffer on which the array is projected on. */ public Int32Array(final ArrayBuffer arrayBuffer) { this(arrayBuffer.getByteBuffer()); }
/** * Creates a UInt8Array projected onto the given ArrayBuffer. * * @param arrayBuffer The ArrayBuffer on which the array is projected on. */ public UInt8Array(final ArrayBuffer arrayBuffer) { this(arrayBuffer.getByteBuffer()); }
/** * Creates a Int8Array projected onto the given ArrayBuffer. * * @param arrayBuffer The ArrayBuffer on which the array is projected on. */ public Int8Array(final ArrayBuffer arrayBuffer) { this(arrayBuffer.getByteBuffer()); }
/** * Creates a UInt32Array projected onto the given ArrayBuffer. * * @param arrayBuffer The ArrayBuffer on which the array is projected on. */ public UInt32Array(final ArrayBuffer arrayBuffer) { this(arrayBuffer.getByteBuffer()); }
/** * Creates a Float32Array projected onto the given ArrayBuffer. * * @param arrayBuffer The ArrayBuffer on which the array is projected on. */ public Float32Array(final ArrayBuffer arrayBuffer) { this(arrayBuffer.getByteBuffer()); }
/** * Creates a Float32Array projected onto the given ArrayBuffer. * * @param arrayBuffer The ArrayBuffer on which the array is projected on. */ public Float32Array(final ArrayBuffer arrayBuffer) { this(arrayBuffer.getByteBuffer()); }
/** * Creates a UInt16Array projected onto the given ArrayBuffer. * * @param arrayBuffer The ArrayBuffer on which the array is projected on. */ public UInt16Array(final ArrayBuffer arrayBuffer) { this(arrayBuffer.getByteBuffer()); }
/** * Creates a UInt16Array projected onto the given ArrayBuffer. * * @param arrayBuffer The ArrayBuffer on which the array is projected on. */ public UInt16Array(final ArrayBuffer arrayBuffer) { this(arrayBuffer.getByteBuffer()); }
/** * Creates a Int16Array projected onto the given ArrayBuffer. * * @param arrayBuffer The ArrayBuffer on which the array is projected on. */ public Int16Array(final ArrayBuffer arrayBuffer) { this(arrayBuffer.getByteBuffer()); }
/** * Creates a UInt8ClampedArray projected onto the given ArrayBuffer. * * @param arrayBuffer The ArrayBuffer on which the array is projected on. */ public UInt8ClampedArray(final ArrayBuffer arrayBuffer) { this(arrayBuffer.getByteBuffer()); }
/** * Creates a UInt32Array projected onto the given ArrayBuffer. * * @param arrayBuffer The ArrayBuffer on which the array is projected on. */ public UInt32Array(final ArrayBuffer arrayBuffer) { this(arrayBuffer.getByteBuffer()); }
/** * Creates a Float64Array projected onto the given ArrayBuffer. * * @param arrayBuffer The ArrayBuffer on which the array is projected on. */ public Float64Array(final ArrayBuffer arrayBuffer) { this(arrayBuffer.getByteBuffer()); }
/** * Creates a UInt8Array projected onto the given ArrayBuffer. * * @param arrayBuffer The ArrayBuffer on which the array is projected on. */ public UInt8Array(final ArrayBuffer arrayBuffer) { this(arrayBuffer.getByteBuffer()); }
/** * Creates a Int32Array projected onto the given ArrayBuffer. * * @param arrayBuffer The ArrayBuffer on which the array is projected on. */ public Int32Array(final ArrayBuffer arrayBuffer) { this(arrayBuffer.getByteBuffer()); }
/** * Creates a Int16Array projected onto the given ArrayBuffer. * * @param arrayBuffer The ArrayBuffer on which the array is projected on. */ public Int16Array(final ArrayBuffer arrayBuffer) { this(arrayBuffer.getByteBuffer()); }
/** * Creates a Float64Array projected onto the given ArrayBuffer. * * @param arrayBuffer The ArrayBuffer on which the array is projected on. */ public Float64Array(final ArrayBuffer arrayBuffer) { this(arrayBuffer.getByteBuffer()); }
/** * Creates a UInt8ClampedArray projected onto the given ArrayBuffer. * * @param arrayBuffer The ArrayBuffer on which the array is projected on. */ public UInt8ClampedArray(final ArrayBuffer arrayBuffer) { this(arrayBuffer.getByteBuffer()); }
/** * Creates a Int8Array projected onto the given ArrayBuffer. * * @param arrayBuffer The ArrayBuffer on which the array is projected on. */ public Int8Array(final ArrayBuffer arrayBuffer) { this(arrayBuffer.getByteBuffer()); }
private static V8ArrayBuffer toV8ArrayBuffer(final V8 v8, final ArrayBuffer arrayBuffer, final Map<Object, V8Value> cache) { if (cache.containsKey(arrayBuffer)) { return (V8ArrayBuffer) cache.get(arrayBuffer); } V8ArrayBuffer result = new V8ArrayBuffer(v8, arrayBuffer.getByteBuffer()); cache.put(arrayBuffer, result); return result; }
private static V8ArrayBuffer toV8ArrayBuffer(final V8 v8, final ArrayBuffer arrayBuffer, final Map<Object, V8Value> cache) { if (cache.containsKey(arrayBuffer)) { return (V8ArrayBuffer) cache.get(arrayBuffer); } V8ArrayBuffer result = new V8ArrayBuffer(v8, arrayBuffer.getByteBuffer()); cache.put(arrayBuffer, result); return result; }