|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.google.gwt.typedarrays.server.ArrayBufferViewImpl
public abstract class ArrayBufferViewImpl
Base class for ArrayBufferView implementations.
| Field Summary | |
|---|---|
protected ArrayBufferImpl |
arrayBuf
|
protected int |
byteLength
|
protected int |
byteOffset
|
(package private) static boolean |
USE_LITTLE_ENDIAN
The spec lets the platform's native endianness come through, so we choose to expose little-endian regardless -- if apps care about the endianness but don't test for it, it is likely they assume little-endian. |
| Constructor Summary | |
|---|---|
ArrayBufferViewImpl(ArrayBuffer buffer,
int byteOffset,
int byteLength)
|
|
| Method Summary | |
|---|---|
ArrayBuffer |
buffer()
Get the underlying ArrayBuffer. |
int |
byteLength()
Get the length of this view in bytes. |
int |
byteOffset()
Get the offset from the beginning of the underlying ArrayBuffer. |
protected int |
checkRange(int index,
int bytesPerElement)
Check the index range and throw an exception if out of range, if ok return the byte index of the specified element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final boolean USE_LITTLE_ENDIAN
protected final ArrayBufferImpl arrayBuf
protected final int byteLength
protected final int byteOffset
| Constructor Detail |
|---|
public ArrayBufferViewImpl(ArrayBuffer buffer,
int byteOffset,
int byteLength)
buffer - byteOffset - byteLength - | Method Detail |
|---|
public ArrayBuffer buffer()
ArrayBufferViewArrayBuffer.
buffer in interface ArrayBufferViewArrayBuffer instance backing this viewpublic int byteLength()
ArrayBufferView
byteLength in interface ArrayBufferViewpublic int byteOffset()
ArrayBufferViewArrayBuffer.
byteOffset in interface ArrayBufferViewArrayBufferView.buffer()
protected int checkRange(int index,
int bytesPerElement)
index - an element indexbytesPerElement -
|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||