Class RelocationsDirectoryBuffer
- Namespace
- AsmResolver.PE.Relocations.Builder
- Assembly
- AsmResolver.PE.dll
Provides a mechanism for building a base relocations directory.
public class RelocationsDirectoryBuffer : SegmentBase, ISegment, IOffsetProvider, IWritable
- Inheritance
-
RelocationsDirectoryBuffer
- Implements
- Inherited Members
Properties
IsEmpty
Gets a value indicating whether there is any data added to the buffer.
public bool IsEmpty { get; }
Property Value
Methods
Add(BaseRelocation)
Adds a single base relocation to the buffer.
public void Add(BaseRelocation relocation)
Parameters
relocation
BaseRelocationThe base relocation to add.
GetPhysicalSize()
Computes the number of bytes that the structure contains.
public override uint GetPhysicalSize()
Returns
- uint
The number of bytes.
UpdateOffsets(in RelocationParameters)
Assigns a new file and virtual offset to the segment and all its sub-components.
public override void UpdateOffsets(in RelocationParameters parameters)
Parameters
parameters
RelocationParametersThe parameters containing the new offset information for the segment.
Write(BinaryStreamWriter)
Serializes the structure to an output stream.
public override void Write(BinaryStreamWriter writer)
Parameters
writer
BinaryStreamWriterThe output stream to write the data to.