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 ArrayBufferViewCommon information across all types of views ofArrayBuffers. {@link "http://www.khronos.org/registry/typedarray/specs/latest/#6"}
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ArrayBufferbuffer()Get the underlyingArrayBuffer.intbyteLength()Get the length of this view in bytes.intbyteOffset()Get the offset from the beginning of the underlyingArrayBuffer.
-
-
-
Method Detail
-
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()
-
-