Package ghidra.program.model.data
Enum Class PointerType
- All Implemented Interfaces:
Serializable
,Comparable<PointerType>
,Constable
PointerType
specified the pointer-type associated with a pointer-typedef.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionNormal absolute pointer offsetPointer offset corresponds to file offset within an associated file.Pointer offset relative to program image base.Pointer offset relative to pointer storage address. -
Method Summary
Modifier and TypeMethodDescriptionstatic PointerType
valueOf
(int val) Get the type associated with the specified value.static PointerType
Returns the enum constant of this class with the specified name.static PointerType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Normal absolute pointer offset -
IMAGE_BASE_RELATIVE
Pointer offset relative to program image base. -
RELATIVE
Pointer offset relative to pointer storage address. NOTE: This type has limited usefulness since it can only be applied to a pointer stored in memory based upon its storage location. Type-propogation should be avoided on the resulting pointer typedef. -
FILE_OFFSET
Pointer offset corresponds to file offset within an associated file.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
Get the type associated with the specified value.- Parameters:
val
- type value- Returns:
- type
- Throws:
NoSuchElementException
- if invalid value specified
-