Class ArrayBufferViewNative
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
com.google.gwt.typedarrays.client.ArrayBufferViewNative
- All Implemented Interfaces:
ArrayBufferView
- Direct Known Subclasses:
DataViewNative,Float32ArrayNative,Float64ArrayNative,Int16ArrayNative,Int32ArrayNative,Int8ArrayNative,Uint16ArrayNative,Uint32ArrayNative,Uint8ArrayNative
Base class for JS implementation of various views.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ArrayBufferbuffer()Get the underlyingArrayBuffer.final intGet the length of this view in bytes.final intGet the offset from the beginning of the underlyingArrayBuffer.Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
-
Constructor Details
-
ArrayBufferViewNative
protected ArrayBufferViewNative()
-
-
Method Details
-
buffer
Description copied from interface:ArrayBufferViewGet the underlyingArrayBuffer.- Specified by:
bufferin interfaceArrayBufferView- Returns:
- the
ArrayBufferinstance backing this view
-
byteLength
public final int byteLength()Description copied from interface:ArrayBufferViewGet the length of this view in bytes.- Specified by:
byteLengthin interfaceArrayBufferView- Returns:
- number of bytes in this view
-
byteOffset
public final int byteOffset()Description copied from interface:ArrayBufferViewGet the offset from the beginning of the underlyingArrayBuffer.- Specified by:
byteOffsetin interfaceArrayBufferView- Returns:
- 0-based offset from the beginning of
ArrayBufferView.buffer()
-