Function

Gummemory_find_pointers

Declaration [src]

GArray*
gum_memory_find_pointers (
  const GumMemoryRange* ranges,
  guint n_ranges,
  const gsize* values,
  guint n_values,
  gsize mask
)

Description [src]

Scans ranges for pointer-aligned words matching any of values, comparing under mask. Use G_MAXSIZE for an exact match, or e.g. 0x00007ffffffffff8 to strip arm64e PAC and non-pointer-isa bits.

Parameters

ranges

Type: An array of GumMemoryRange

The GumMemoryRange instances to scan.

The length of the array is specified in the n_ranges argument.
The data is owned by the caller of the function.
n_ranges

Type: guint

The number of ranges.

values

Type: An array of gsize

The pointer-width values to look for.

The length of the array is specified in the n_values argument.
The data is owned by the caller of the function.
n_values

Type: guint

The number of values.

mask

Type: gsize

Bitmask applied to each scanned word and each value before comparing.

Return value

Type: An array of None

The matches, sorted by address.

The caller of the function takes ownership of the data, and is responsible for freeing it.