public interface ArrayBufferView
The ArrayBufferView
type describes a particular view on the contents of an ArrayBuffer
's data.
Of note is that you may create multiple views into the same buffer, each looking at the buffer's contents starting at a particular offset. This makes it possible to set up views of different data types to read the contents of a buffer based on the types of data at specific offsets into the buffer.
Modifier and Type | Method and Description |
---|---|
ArrayBuffer |
getBuffer()
The buffer this view references.
|
int |
getByteLength()
The length, in bytes, of the view.
|
int |
getByteOffset()
The offset, in bytes, to the first byte of the view within the
ArrayBuffer . |
ArrayBuffer getBuffer()
int getByteLength()
int getByteOffset()
ArrayBuffer
.Copyright © 2018. All rights reserved.