Struct BaseRelocation
- Namespace
- AsmResolver.PE.Relocations
- Assembly
- AsmResolver.PE.dll
Represents a single base relocation that is applied after the operating system has loaded the PE image into memory.
public readonly struct BaseRelocation
- Inherited Members
Constructors
BaseRelocation(RelocationType, ISegmentReference)
Creates a new base relocation.
public BaseRelocation(RelocationType type, ISegmentReference location)
Parameters
typeRelocationTypeThe type of base relocation to apply.
locationISegmentReferenceThe location within the executable to apply the base relocation.
Properties
Location
Gets the location within the executable to apply the relocation to.
public ISegmentReference Location { get; }
Property Value
Type
Gets the type of relocation to apply.
public RelocationType Type { get; }
Property Value
Methods
Equals(BaseRelocation)
Determines whether two base relocations are considered equal.
public bool Equals(BaseRelocation other)
Parameters
otherBaseRelocationThe other base relocation.
Returns
- bool
trueif the base relocations are equal,falseotherwise.
Remarks
This method only considers the virtual address (RVA) of the target location, and not the entire ISegmentReference member.
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()