Skip to main content

UnsafePointer

class Deno.UnsafePointer

A collection of static functions for interacting with pointer objects.

Static Methods Jump to heading

Jump to headingcreate<T = unknown>(value: bigint): PointerValue<T>

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

Jump to headingequals<T = unknown>(): boolean

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

Jump to headingof<T = unknown>(value: Deno.UnsafeCallback | BufferSource): PointerValue<T>

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

Jump to headingoffset<T = unknown>(
offset: number,
): PointerValue<T>

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

Get the numeric value of a pointer

Back to top