Class NativePointer

Class providing a way to work with 64bit pointers from Javascript, this API mimics the same well-known promitive available in Frida, but it's baked by the current session of r2.

It is also possible to use this class via the global ptr function.

Hierarchy

  • NativePointer

Constructors

Properties

addr: string
api: R2Papi

Methods

  • Compare current pointer with the passed one, and return -1, 0 or 1.

    • if (this < arg) return -1;
    • if (this > arg) return 1;
    • if (this == arg) return 0;

    Parameters

    Returns number

    returns -1, 0 or 1 depending on the comparison of the pointers

  • Parameters

    • Optional length: number

    Returns string

  • Parameters

    • Optional length: number

    Returns string

  • Check if it's a pointer to the address zero. Also known as null pointer.

    Returns boolean

    true if null

  • Check if it's a pointer to the address zero. Also known as null pointer.

    Returns boolean

    true if null

  • Parameters

    • len: number

    Returns number[]

  • Parameters

    • len: number

    Returns string

  • Parameters

    • name: string

    Returns void

  • Parameters

    • n: number

    Returns boolean

  • Parameters

    • n: number

    Returns boolean

  • Parameters

    • n: number

    Returns boolean

  • Parameters

    • n: number

    Returns boolean

  • Parameters

    • n: number

    Returns boolean

  • Parameters

    • n: number

    Returns boolean

  • Parameters

    • n: number

    Returns boolean

  • Parameters

    • n: number

    Returns boolean

  • Parameters

    • n: number

    Returns boolean

  • Parameters

    • n: number

    Returns boolean

  • Parameters

    • n: number

    Returns boolean

Generated using TypeDoc