public final class ArrayBuffer
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Method and Description |
---|---|
static ArrayBuffer |
copy(com.google.gwt.typedarrays.shared.ArrayBuffer origin) |
static ArrayBuffer |
create(int length)
Creates a new ArrayBuffer of the given length in bytes.
|
byte |
get(int index) |
int |
getByteLength()
The length of the ArrayBuffer in bytes, as fixed at construction time.
|
static ArrayBuffer |
slice(int start,
int end) |
public static ArrayBuffer create(int length)
length
- number of bytespublic static ArrayBuffer copy(com.google.gwt.typedarrays.shared.ArrayBuffer origin)
public static ArrayBuffer slice(int start, int end)
public int getByteLength()
public byte get(int index)