Table of Contents

Class DotNetResourcesDirectory

Namespace
AsmResolver.PE.DotNet.Resources
Assembly
AsmResolver.PE.dll

Represents a data directory containing the data of all manifest resources stored in a .NET module.

public abstract class DotNetResourcesDirectory : SegmentBase, ISegment, IOffsetProvider, IWritable
Inheritance
DotNetResourcesDirectory
Implements
Derived
Inherited Members

Methods

GetManifestResourceData(uint)

Gets the manifest resource data by its offset.

public abstract byte[]? GetManifestResourceData(uint offset)

Parameters

offset uint

The offset of the resource data, relative to the start of the data directory.

Returns

byte[]

The data, or null if the offset is not a valid offset.

TryCreateManifestResourceReader(uint, out BinaryStreamReader)

Gets a reader starting at the beginning of the resource data referenced by the provided offset.

public abstract bool TryCreateManifestResourceReader(uint offset, out BinaryStreamReader reader)

Parameters

offset uint

The offset of the resource data, relative to the start of the data directory.

reader BinaryStreamReader

When this method returns true, this parameter contains the created binary reader.

Returns

bool

true if a blob reader could be created at the provided offset, false otherwise.