Package ghidra.program.model.reloc
Record Class RelocationResult
java.lang.Object
java.lang.Record
ghidra.program.model.reloc.RelocationResult
- Record Components:
- status- the relocation status
- byteLength- 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 SummaryFieldsModifier and TypeFieldDescriptionstatic final RelocationResultstatic final RelocationResultstatic final RelocationResultstatic final RelocationResult
- 
Constructor SummaryConstructorsConstructorDescriptionRelocationResult(Relocation.Status status, int byteLength) Creates an instance of aRelocationResultrecord class.
- 
Method SummaryModifier 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- 
RelocationResultCreates an instance of aRelocationResultrecord class.- Parameters:
- status- the value for the- statusrecord component
- byteLength- the value for the- byteLengthrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
statusReturns the value of thestatusrecord component.- Returns:
- the value of the statusrecord component
 
- 
byteLengthpublic int byteLength()Returns the value of thebyteLengthrecord component.- Returns:
- the value of the byteLengthrecord component
 
 
-