transferArrayBuffer

fun transferArrayBuffer(id: Number, arrayBuffer: <Error class: unknown class>)(source)

Marks an ArrayBuffer as having its contents transferred out of band. Pass the corresponding ArrayBuffer in the serializing context to serializer.transferArrayBuffer() (or return the id from serializer._getSharedArrayBufferId() in the case of SharedArrayBuffers).

Parameters

id

A 32-bit unsigned integer.

arrayBuffer

An ArrayBuffer instance.