deserializer.transferArrayBuffer(id, arrayBuffer)
id
<integer> 32 位无符号整数。arrayBuffer
<ArrayBuffer> | <SharedArrayBuffer>ArrayBuffer
实例。
将 ArrayBuffer
标记为将其内容传输到带外。
将序列化上下文中对应的 ArrayBuffer
传给 serializer.transferArrayBuffer()
(或者在 SharedArrayBuffer
的情况下从 serializer._getSharedArrayBufferId()
返回 id
)。
id
<integer> A 32-bit unsigned integer.arrayBuffer
<ArrayBuffer> | <SharedArrayBuffer> AnArrayBuffer
instance.
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 SharedArrayBuffer
s).