Readonly
[toReadonly
byteRead-only. The length of the ArrayBuffer (in bytes).
Whether the buffer is immutable.
Creates an immutable slice of the given buffer.
Optional
start: numberThe start index.
Optional
end: numberThe end index.
The sliced immutable ArrayBuffer.
Transfer the contents to a new immutable ArrayBuffer
Optional
newLength: numberThe start index.
The new immutable ArrayBuffer.
Returns a boolean indicating whether or not this buffer has been detached (transferred).
If this ArrayBuffer is resizable, returns the maximum byte length given during construction; returns the byte length if not.
Returns true if this ArrayBuffer can be resized.
Resizes the ArrayBuffer to the specified size (in bytes).
Optional
newByteLength: numberReturns a section of an ArrayBuffer.
Optional
begin: numberOptional
end: numberCreates a new ArrayBuffer with the same byte content as this buffer, then detaches this buffer.
Optional
newByteLength: numberCreates a new non-resizable ArrayBuffer with the same byte content as this buffer, then detaches this buffer.
Optional
newByteLength: number
Represents a raw buffer of binary data, which is used to store data for the different typed arrays. ArrayBuffers cannot be read from or written to directly, but can be passed to a typed array or DataView Object to interpret the raw buffer as needed.