| java.lang.Object | |
| ↳ | com.pnfsoftware.jeb.core.units.code.Pointer |
Known Direct Subclasses
|
Description of a pointer or pointer to pointer. That includes memory address as well as optional memory size.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | CODE | Address references an area of code; it is recommended to use CodePointer
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 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Pointer(long address, int size, int type) | |||||||||||
| Pointer(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
| |||||||||||
Address references an area of code; it is recommended to use CodePointer
instead for routines/methods.
Address references an area of data.
Address references a pointer (ie, this is a double-indirection) to an area of code; `size` is N/A.
address references a pointer (ie, this is a double-indirection) to an area of data; `size` is N/A.
Address references an area whose type is unknown.
Mandatory address
Optional size, possibly 0 if unknown. Negative means address is an end address.
Possible type(s) for the bytes at the given address
| address | pointed address |
|---|---|
| size | optional size in bytes |
| type | optional |
Get the address.
Get the size in bytes. May be 0.
Get the pointer type.
Set the size in bytes.