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
FieldsModifier and TypeFieldDescriptionstatic final RelocationResultstatic final RelocationResultstatic final RelocationResultstatic final RelocationResult -
Constructor Summary
ConstructorsConstructorDescriptionRelocationResult(Relocation.Status status, int byteLength) Creates an instance of aRelocationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebyteLengthrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
FAILURE
-
UNSUPPORTED
-
SKIPPED
-
PARTIAL
-
-
Constructor Details
-
RelocationResult
Creates an instance of aRelocationResultrecord class.- Parameters:
status- the value for thestatusrecord componentbyteLength- the value for thebyteLengthrecord 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 thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
byteLength
public int byteLength()Returns the value of thebyteLengthrecord component.- Returns:
- the value of the
byteLengthrecord component
-