Class ArrayBufferNative
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
com.google.gwt.typedarrays.client.ArrayBufferNative
- All Implemented Interfaces:
ArrayBuffer
JS native implementation of
ArrayBuffer
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
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
-
Constructor Details
-
ArrayBufferNative
protected ArrayBufferNative()
-
-
Method Details
-
create
- 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
-