Skip to main content

transferArrayBuffer

method Deserializer.prototype.transferArrayBuffer
Jump to headingDeserializer.prototype.transferArrayBuffer(
id: number,
arrayBuffer: ArrayBuffer,
): void

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 Jump to heading

A 32-bit unsigned integer.

Jump to headingarrayBuffer: ArrayBuffer

An ArrayBuffer instance.

Return Type Jump to heading

void
Back to top