public class

PointerDescription

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.PointerDescription
Known Direct Subclasses

Class Overview

Description of a pointer or pointer to pointer. That includes memory address as well as optional memory size.

Summary

Constants
int CODE Address references an area of code; it is recommended to use EntryPointDescription instead for routines/methods.
int DATA Address references an area of data.
int PTRCODE Address references a pointer (ie, this is a double-indirection) to an area of code; `size` is N/A.
int PTRDATA address references a pointer (ie, this is a double-indirection) to an area of data; `size` is N/A.
int UNKNOWN Address references an area whose type is unknown.
Fields
protected long address Mandatory address
protected int size Optional size, possibly 0 if unknown.
protected int type Possible type(s) for the bytes at the given address
Public Constructors
PointerDescription(long address, int size, int type)
PointerDescription(long address)
Public Methods
boolean equals(Object obj)
long getAddress()
Get the address.
int getSize()
Get the size in bytes.
int getType()
Get the pointer type.
int hashCode()
void setSize(int size)
Set the size in bytes.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int CODE

Address references an area of code; it is recommended to use EntryPointDescription instead for routines/methods.

Constant Value: 1 (0x00000001)

public static final int DATA

Address references an area of data.

Constant Value: 2 (0x00000002)

public static final int PTRCODE

Address references a pointer (ie, this is a double-indirection) to an area of code; `size` is N/A.

Constant Value: 5 (0x00000005)

public static final int PTRDATA

address references a pointer (ie, this is a double-indirection) to an area of data; `size` is N/A.

Constant Value: 6 (0x00000006)

public static final int UNKNOWN

Address references an area whose type is unknown.

Constant Value: 0 (0x00000000)

Fields

protected long address

Mandatory address

protected int size

Optional size, possibly 0 if unknown. Negative means address is an end address.

protected int type

Possible type(s) for the bytes at the given address

Public Constructors

public PointerDescription (long address, int size, int type)

public PointerDescription (long address)

Public Methods

public boolean equals (Object obj)

public long getAddress ()

Get the address.

public int getSize ()

Get the size in bytes. May be 0.

public int getType ()

Get the pointer type.

public int hashCode ()

public void setSize (int size)

Set the size in bytes.

public String toString ()