SharedArrayBuffer

external class SharedArrayBuffer(val byteLength: Int, options: SharedArrayBufferOptions? = definedExternally) : ArrayBufferLike, AllowSharedBufferSource(source)

Constructors

Link copied to clipboard
constructor(byteLength: Int, options: SharedArrayBufferOptions? = definedExternally)

Properties

Link copied to clipboard
open override val byteLength: Int

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

Link copied to clipboard

Returns true if this SharedArrayBuffer can be grown.

Link copied to clipboard
open override val maxByteLength: Int

If this SharedArrayBuffer is growable, returns the maximum byte length given during construction; returns the byte length if not.

Functions

Link copied to clipboard
fun grow(newByteLength: Int)

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

Link copied to clipboard
open override fun slice(begin: Int, end: Int): SharedArrayBuffer

Returns a section of an SharedArrayBuffer.