Class SerializedDotNetDirectory
- Namespace
- AsmResolver.PE.DotNet
- Assembly
- AsmResolver.PE.dll
Provides an implementation of a .NET directory that was stored in a PE file.
public class SerializedDotNetDirectory : DotNetDirectory, ISegment, IOffsetProvider, IWritable
- Inheritance
-
SerializedDotNetDirectory
- Implements
- Inherited Members
Constructors
SerializedDotNetDirectory(PEReaderContext, ref BinaryStreamReader)
Reads a .NET directory from an input stream.
public SerializedDotNetDirectory(PEReaderContext context, ref BinaryStreamReader reader)
Parameters
context
PEReaderContextThe reader context.
reader
BinaryStreamReaderThe input stream.
Exceptions
- ArgumentNullException
Occurs when any of the arguments are
null
.
Methods
GetCodeManagerTable()
Obtains the data directory containing the code manager table of the .NET binary.
protected override IReadableSegment? GetCodeManagerTable()
Returns
- IReadableSegment
The data directory.
Remarks
This method is called upon initialization of the CodeManagerTable property
GetExportAddressTable()
Obtains the data directory containing the export address table of the .NET binary.
protected override IReadableSegment? GetExportAddressTable()
Returns
- IReadableSegment
The data directory.
Remarks
This method is called upon initialization of the ExportAddressTable property
GetManagedNativeHeader()
Obtains the data directory containing the managed native header of the .NET binary.
protected override IManagedNativeHeader? GetManagedNativeHeader()
Returns
- IManagedNativeHeader
The data directory.
Remarks
This method is called upon initialization of the ManagedNativeHeader property
GetMetadata()
Obtains the data directory containing the metadata of the .NET binary.
protected override MetadataDirectory? GetMetadata()
Returns
- MetadataDirectory
The data directory.
Remarks
This method is called upon initialization of the Metadata property
GetResources()
Obtains the data directory containing the embedded resources data of the .NET binary.
protected override DotNetResourcesDirectory? GetResources()
Returns
- DotNetResourcesDirectory
The data directory.
Remarks
This method is called upon initialization of the DotNetResources property
GetStrongName()
Obtains the data directory containing the strong name signature of the .NET binary.
protected override IReadableSegment? GetStrongName()
Returns
- IReadableSegment
The data directory.
Remarks
This method is called upon initialization of the StrongName property
GetVTableFixups()
Obtains the data directory containing the VTable fixups of the .NET binary.
protected override VTableFixupsDirectory? GetVTableFixups()
Returns
- VTableFixupsDirectory
The data directory.
Remarks
This method is called upon initialization of the VTableFixups property