Class Pointer
java.lang.Object
com.pnfsoftware.jeb.core.units.code.Pointer
- Direct Known Subclasses:
CodePointer
Description of a pointer or pointer to pointer. That includes memory address as well as optional
memory size.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected long
Mandatory addressstatic final int
Address references an area of code; it is recommended to useCodePointer
instead for routines/methods.static final int
Address references an area of data.static final int
Address references a pointer (ie, this is a double-indirection) to an area of code; `size` is N/A.static final int
address references a pointer (ie, this is a double-indirection) to an area of data; `size` is N/A.protected int
Optional size, possibly 0 if unknown.protected int
Possible type(s) for the bytes at the given addressstatic final int
Address references an area whose type is unknown. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
UNKNOWN
public static final int UNKNOWNAddress references an area whose type is unknown.- See Also:
-
CODE
public static final int CODEAddress references an area of code; it is recommended to useCodePointer
instead for routines/methods.- See Also:
-
DATA
public static final int DATAAddress references an area of data.- See Also:
-
PTRCODE
public static final int PTRCODEAddress references a pointer (ie, this is a double-indirection) to an area of code; `size` is N/A.- See Also:
-
PTRDATA
public static final int PTRDATAaddress references a pointer (ie, this is a double-indirection) to an area of data; `size` is N/A.- See Also:
-
address
protected long addressMandatory address -
size
protected int sizeOptional size, possibly 0 if unknown. Negative means address is an end address. -
type
protected int typePossible type(s) for the bytes at the given address
-
-
Constructor Details
-
Pointer
public Pointer(long address, int size, int type) - Parameters:
address
- pointed addresssize
- optional size in bytestype
- optional
-
Pointer
public Pointer(long address)
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
getAddress
public long getAddress()Get the address.- Returns:
-
getSize
public int getSize()Get the size in bytes. May be 0.- Returns:
-
setSize
public void setSize(int size) Set the size in bytes. -
getType
public int getType()Get the pointer type.- Returns:
-
toString
-