Package ghidra.program.model.reloc
Record Class RelocationResult
java.lang.Object
java.lang.Record
ghidra.program.model.reloc.RelocationResult
- Record Components:
status
- the relocation statusbyteLength
- the number of original bytes modified at relocation offset if successfully applied and memory bytes were modified.
RelocationResult
provides the status and byte-length of a processed relocation during
the Program
load process. Intended to be used internally by a relocation handler.
A positive byte-length is only required for a status of Relocation.Status.APPLIED
or
Relocation.Status.APPLIED_OTHER
. Use if Relocation.Status.UNKNOWN
should be avoided and is intended
for relocation data upgrades when actual status can not be determined.
Singleton instances are provided for relocations which did not directly results in original loaded memory modification.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final RelocationResult
static final RelocationResult
static final RelocationResult
static final RelocationResult
-
Constructor Summary
ConstructorDescriptionRelocationResult
(Relocation.Status status, int byteLength) Creates an instance of aRelocationResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of thebyteLength
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.status()
Returns the value of thestatus
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
FAILURE
-
UNSUPPORTED
-
SKIPPED
-
PARTIAL
-
-
Constructor Details
-
RelocationResult
Creates an instance of aRelocationResult
record class.- Parameters:
status
- the value for thestatus
record componentbyteLength
- the value for thebyteLength
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
record component
-
byteLength
public int byteLength()Returns the value of thebyteLength
record component.- Returns:
- the value of the
byteLength
record component
-