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

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

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

UNSTABLE: New API, yet to be vetted.

An unsafe pointer to a memory location for passing and returning pointers to and from the FFI.

Static Methods

create(value: number | bigint): PointerValue

Create a pointer from a numeric value. This one is really dangerous!

Returns true if the two pointers point to the same address.

Return the direct memory pointer to the typed array in memory.

offset(value: NonNullable<PointerValue>, offset: number): PointerValue

Return a new pointer offset from the original by offset bytes.

value(value: PointerValue): number | bigint

Get the numeric value of a pointer