Creates a new NativePointer from v
, which is either a string containing the memory address in decimal,
or hexadecimal if prefixed with “0x”, or a number. You may use the ptr(v) short-hand for brevity.
Makes a new NativePointer whose value is this
+ v
.
Makes a new NativePointer whose value is this
& v
.
Makes a new NativePointer by taking this
and blending it with
a constant, which may in turn be passed to sign()
as data
.
Value to blend with.
Returns an integer comparison result just like String#localeCompare().
Returns a boolean indicating whether v
is equal to this
; i.e. it contains the same memory address.
Makes a new NativePointer whose value is ~`this`.
Makes a new NativePointer whose value is this
| v
.
Replaces the return value that would otherwise be returned.
Makes a new NativePointer whose value is this
>> v
.
Makes a new NativePointer whose value is this
<< v
.
Makes a new NativePointer by taking the bits of this
and adding
pointer authentication bits, creating a signed pointer. This is a
no-op if the current process does not support pointer
authentication, returning this
instead of a new value.
Optional
key: PointerAuthenticationKeyThe key to use. Defaults to ia
.
Optional
data: string | number | NativePointerValue | Int64 | UInt64The data to use. Defaults to 0
.
Makes a new NativePointer by taking the bits of this
and
removing its pointer authentication bits, creating a raw pointer.
This is a no-op if the current process does not support pointer
authentication, returning this
instead of a new value.
Optional
key: PointerAuthenticationKeyThe key that was used to sign this
. Defaults to ia
.
Makes a new NativePointer whose value is this
- v
.
Makes a new NativePointer whose value is this
^ v
.
Generated using TypeDoc
Value that is about to be returned.