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.
OptionalthisArg: NativePointerValueReturns 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.
Returns a boolean allowing you to conveniently check if a pointer is NULL.
Makes a new NativePointer whose value is ~this.
Makes a new NativePointer whose value is this | v.
Optionalsize: numberOptionalsize: numberOptionallength: numberOptionalsize: numberMakes 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.
Optionalkey: PointerAuthenticationKeyThe key to use. Defaults to ia.
Optionaldata: 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.
Optionalkey: PointerAuthenticationKeyThe key that was used to sign this. Defaults to ia.
Makes a new NativePointer whose value is this - v.
Converts to a signed 32-bit integer.
Converts to a JSON-serializable value. Same as toString().
Returns a string containing a Memory#scan()-compatible match pattern for this pointer’s raw value.
Converts to a “0x”-prefixed hexadecimal string, unless a radix
is specified.
Optionalradix: numberConverts to an unsigned 32-bit integer.
Makes a new NativePointer whose value is this ^ v.
Represents a native pointer value whose size depends on Process#pointerSize.