@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Uint8Array")
public class Uint8Array
extends JsObject
implements IntegerTypedArray
| Modifier and Type | Field and Description |
|---|---|
static int |
BYTES_PER_ELEMENT
The BYTES_PER_ELEMENT property represents the size in bytes of each element in an typed array.
|
static java.lang.String |
name
The name property represents a string value of the typed array constructor name.
|
| Constructor and Description |
|---|
Uint8Array(ArrayBuffer buffer)
The Uint8Array() constructor creates a typed array of 8-bit unsigned integers.
|
Uint8Array(ArrayBuffer buffer,
int byteOffset)
The Uint8Array() constructor creates a typed array of 8-bit unsigned integers.
|
Uint8Array(ArrayBuffer buffer,
int byteOffset,
int length)
The Uint8Array() constructor creates a typed array of 8-bit unsigned integers.
|
Uint8Array(double[] array)
The Uint8Array() constructor creates a typed array of 8-bit unsigned integers.
|
Uint8Array(int length)
The Uint8Array() constructor creates a typed array of 8-bit unsigned integers.
|
Uint8Array(JsArray<java.lang.Double> array)
The Uint8Array() constructor creates a typed array of 8-bit unsigned integers.
|
Uint8Array(Uint8Array array)
The Uint8Array() constructor creates a typed array of 8-bit unsigned integers.
|
| Modifier and Type | Method and Description |
|---|---|
ArrayBuffer |
buffer()
The buffer accessor property represents the ArrayBuffer referenced by a TypedArray at construction time.
|
int |
byteLength()
The byteLength accessor property represents the length (in bytes) of the typed array.
|
int |
byteOffset()
The byteOffset accessor property represents the offset (in bytes) of a typed array from the start of its ArrayBuffer.
|
Uint8Array |
copyWithin(int target,
int start)
The copyWithin() method shallow copies part of an array to another location in the same array and returns it without modifying its length.
|
Uint8Array |
copyWithin(int target,
int start,
int end)
The copyWithin() method shallow copies part of an array to another location in the same array and returns it without modifying its length.
|
short |
getAt(int index) |
int |
length()
The length accessor property represents the length (in elements) of a typed array.
|
static Uint8Array |
of(short... element)
The TypedArray.of() method creates a new typed array from a variable number of arguments.
|
void |
set(double[] array)
The set() method stores multiple values in the typed array, reading input values from a specified array.
|
void |
set(double[] array,
int offset)
The set() method stores multiple values in the typed array, reading input values from a specified array.
|
void |
set(JsArray<java.lang.Double> array)
The set() method stores multiple values in the typed array, reading input values from a specified array.
|
void |
set(JsArray<java.lang.Double> array,
int offset)
The set() method stores multiple values in the typed array, reading input values from a specified array.
|
void |
set(Uint8Array array)
The set() method stores multiple values in the typed array, reading input values from a specified array.
|
void |
set(Uint8Array array,
int offset)
The set() method stores multiple values in the typed array, reading input values from a specified array.
|
void |
setAt(int index,
short value) |
Uint8Array |
subarray(int start,
int end)
The subarray() method returns a new TypedArray on the same ArrayBuffer store and with the same element types as for this TypedArray object.
|
java.lang.String |
toString_()
The toString() method returns a string representing the specified array and its elements.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, valueOf_, values@JsOverlay public static final int BYTES_PER_ELEMENT
@JsOverlay public static final java.lang.String name
public Uint8Array(int length)
public Uint8Array(@Nonnull
Uint8Array array)
public Uint8Array(@Nonnull
JsArray<java.lang.Double> array)
public Uint8Array(@Nonnull
double[] array)
public Uint8Array(@Nonnull
ArrayBuffer buffer,
int byteOffset,
int length)
public Uint8Array(@Nonnull
ArrayBuffer buffer,
int byteOffset)
public Uint8Array(@Nonnull
ArrayBuffer buffer)
@JsProperty(name="buffer") @Nonnull public ArrayBuffer buffer()
buffer in interface ArrayBufferView@JsProperty(name="byteLength") public int byteLength()
byteLength in interface ArrayBufferView@JsProperty(name="byteOffset") public int byteOffset()
byteOffset in interface ArrayBufferView@JsProperty(name="length") public int length()
@Nonnull public static Uint8Array of(short... element)
@Nonnull public Uint8Array copyWithin(int target, int start, int end)
@Nonnull public Uint8Array copyWithin(int target, int start)
@JsOverlay public final short getAt(int index)
@JsOverlay
public final void setAt(int index,
short value)
public void set(@Nonnull
Uint8Array array,
int offset)
public void set(@Nonnull
Uint8Array array)
public void set(@Nonnull
JsArray<java.lang.Double> array,
int offset)
public void set(@Nonnull
double[] array,
int offset)
public void set(@Nonnull
JsArray<java.lang.Double> array)
public void set(@Nonnull
double[] array)
@Nonnull public Uint8Array subarray(int start, int end)
@JsMethod(name="toString") @Nonnull public java.lang.String toString_()
toString_ in class JsObject