| description | A fixed-length raw binary buffer. |
|---|
A fixed-length raw binary buffer.
The ArrayBuffer API is exactly as in JavaScript (MDN).
-
Constructs a new buffer of the given length in bytes.
new ArrayBuffer(length: i32)
-
Returns true if
function isView<T>(value: T): bool
valueis one of the buffer views, such as one of the typed arrays or a DataView.
-
The buffer's length, in bytes.
readonly byteLength: i32
-
function slice(begin?: i32, end?: i32): ArrayBuffer
Returns a copy of this buffer from begin, inclusive, up to end, exclusive.
-
function toString(): string
Returns a string representation of this buffer.