Interface SharedArrayBuffer

    interface SharedArrayBuffer {
        "[species]": SharedArrayBuffer;
        "[toStringTag]": "SharedArrayBuffer";
        byteLength: number;
        get growable(): boolean;
        get maxByteLength(): number;
        grow(newByteLength?: number): void;
        slice(begin?: number, end?: number): SharedArrayBuffer;
    }

    Properties

    "[species]": SharedArrayBuffer
    "[toStringTag]": "SharedArrayBuffer"
    byteLength: number

    Read-only. The length of the ArrayBuffer (in bytes).

    Accessors

    • get growable(): boolean
    • Returns true if this SharedArrayBuffer can be grown.

      MDN

      Returns boolean

    • get maxByteLength(): number
    • If this SharedArrayBuffer is growable, returns the maximum byte length given during construction; returns the byte length if not.

      MDN

      Returns number

    Methods

    • Grows the SharedArrayBuffer to the specified size (in bytes).

      MDN

      Parameters

      • OptionalnewByteLength: number

      Returns void

    • Returns a section of an SharedArrayBuffer.

      Parameters

      • Optionalbegin: number
      • Optionalend: number

      Returns SharedArrayBuffer