/** * 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()); }
/** * Create a new ArrayBuffer with the given ByteBuffer as the backing store. The ByteBuffer must * be created as a DirectBuffer. * * @param byteBuffer The ByteBuffer to back this ArrayBuffer. */ public ArrayBuffer(final ByteBuffer byteBuffer) { this.byteBuffer = validateByteBuffer(byteBuffer); }
V8ArrayBuffer buffer = (V8ArrayBuffer) array.get(index); try { return new ArrayBuffer(buffer.getBackingStore()); } finally { buffer.release();
V8ArrayBuffer buffer = (V8ArrayBuffer) object.get(key); try { return new ArrayBuffer(buffer.getBackingStore()); } finally { buffer.release();
/** * 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()); }
V8ArrayBuffer buffer = (V8ArrayBuffer) array.get(index); try { return new ArrayBuffer(buffer.getBackingStore()); } finally { buffer.release();
/** * Create a new ArrayBuffer with the given ByteBuffer as the backing store. The ByteBuffer must * be created as a DirectBuffer. * * @param byteBuffer The ByteBuffer to back this ArrayBuffer. */ public ArrayBuffer(final ByteBuffer byteBuffer) { this.byteBuffer = validateByteBuffer(byteBuffer); }
/** * 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()); }
V8ArrayBuffer buffer = (V8ArrayBuffer) object.get(key); try { return new ArrayBuffer(buffer.getBackingStore()); } finally { buffer.release();
/** * 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()); }