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

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

A modern runtime for JavaScript and TypeScript.
Latest
method Deno.UnsafePointerView.copyInto
import { Deno } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.ns.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: PointerObject
destination: BufferSource
optional
offset: number