Class ArrayBufferNative
- java.lang.Object
-
- com.google.gwt.core.client.JavaScriptObject
-
- com.google.gwt.typedarrays.client.ArrayBufferNative
-
- All Implemented Interfaces:
ArrayBuffer
public final class ArrayBufferNative extends JavaScriptObject implements ArrayBuffer
JS native implementation ofArrayBuffer
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ArrayBufferNative()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
byteLength()
The length of theArrayBuffer
in bytes, which does not change.static ArrayBufferNative
create(int length)
-
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
-
-
-
-
Method Detail
-
create
public static ArrayBufferNative create(int length)
- Parameters:
length
-- Returns:
- an
ArrayBuffer
instance
-
byteLength
public int byteLength()
Description copied from interface:ArrayBuffer
The length of theArrayBuffer
in bytes, which does not change.- Specified by:
byteLength
in interfaceArrayBuffer
- Returns:
- non-negative length
-
-