Interface ArrayBufferView
- All Known Subinterfaces:
DataView,Float32Array,Float64Array,Int16Array,Int32Array,Int8Array,Uint16Array,Uint32Array,Uint8Array,Uint8ClampedArray
- All Known Implementing Classes:
ArrayBufferViewImpl,ArrayBufferViewNative,DataViewImpl,DataViewNative,DataViewNativeEmul,Float32ArrayImpl,Float32ArrayNative,Float64ArrayImpl,Float64ArrayNative,Int16ArrayImpl,Int16ArrayNative,Int32ArrayImpl,Int32ArrayNative,Int8ArrayImpl,Int8ArrayNative,Uint16ArrayImpl,Uint16ArrayNative,Uint32ArrayImpl,Uint32ArrayNative,Uint8ArrayImpl,Uint8ArrayNative,Uint8ClampedArrayImpl,Uint8ClampedArrayNativeEmul
public interface ArrayBufferView
Common information across all types of views of
}
ArrayBuffers.
invalid @link
{@link "http://www.khronos.org/registry/typedarray/specs/latest/#6"
-
Method Summary
Modifier and TypeMethodDescriptionbuffer()Get the underlyingArrayBuffer.intGet the length of this view in bytes.intGet the offset from the beginning of the underlyingArrayBuffer.
-
Method Details
-
buffer
ArrayBuffer buffer()Get the underlyingArrayBuffer.- Returns:
- the
ArrayBufferinstance backing this view
-
byteLength
int byteLength()Get the length of this view in bytes.- Returns:
- number of bytes in this view
-
byteOffset
int byteOffset()Get the offset from the beginning of the underlyingArrayBuffer.- Returns:
- 0-based offset from the beginning of
buffer()
-