Skip to main content
Deserializer.prototype.transferArrayBuffer - node__v8.d.ts - Node documentation
method Deserializer.prototype.transferArrayBuffer

Usage in Deno

```typescript import { Deserializer } from "node:node__v8.d.ts"; ```
Deserializer.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 `SharedArrayBuffer`s).

Parameters

id: number
A 32-bit unsigned integer.
arrayBuffer: ArrayBuffer
An `ArrayBuffer` instance.

Return Type

void