# ArrayBuffer

A fixed-length raw binary buffer.

The ArrayBuffer API is exactly as in JavaScript (MDN).

# Constructor

  • new ArrayBuffer(length: i32)
    
    Constructs a new buffer of the given length in bytes.

# Static members

  • function isView<T>(value: T): bool
    
    Returns true if value is one of the buffer views, such as one of the typed arrays or a DataView.

# Instance members

# Fields

  • readonly byteLength: i32
    
    The buffer's length, in bytes.

# Methods

  • 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.