Returns the bytes a buffer view spans as a standalone ArrayBuffer.
Reading buffer from a view directly is rarely correct; it spans the whole underlying allocation, ignoring the view's byteOffset and byteLength.
buffer
byteOffset
byteLength
An ArrayBuffer, which is returned as is, or a view to copy from.
Returns the bytes a buffer view spans as a standalone ArrayBuffer.
Reading
bufferfrom a view directly is rarely correct; it spans the whole underlying allocation, ignoring the view'sbyteOffsetandbyteLength.