Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/tsc/dts/lib.deno.unstable.d.ts>Deno.UnsafePointerView.copyInto

A modern runtime for JavaScript and TypeScript.
Go to Latest
method Deno.UnsafePointerView.copyInto
import { Deno } from "https://deno.land/x/deno@v1.36.0/cli/tsc/dts/lib.deno.unstable.d.ts";
const { UnsafePointerView } = Deno;

Copies the memory of the specified pointer into a typed array.

Length is determined from the typed array's byteLength.

Also takes optional byte offset from the pointer.

Parameters

pointer: NonNullable<PointerValue>
destination: BufferSource
optional
offset: number