Struct ResourceDirectoryEntry
- Namespace
- AsmResolver.PE.Win32Resources
- Assembly
- AsmResolver.PE.dll
Represents the raw structure of an entry in a directory.
public readonly struct ResourceDirectoryEntry
- Inherited Members
Remarks
This structure models the IMAGE_DIRECTORY_ENTRY_RESOURCE structure as described in https://docs.microsoft.com/en-us/windows/win32/debug/pe-format
Constructors
ResourceDirectoryEntry(PEReaderContext, ref BinaryStreamReader)
Reads a new resource directory entry from the reader.
public ResourceDirectoryEntry(PEReaderContext context, ref BinaryStreamReader reader)
Parameters
contextPEReaderContextThe containing PE file.
readerBinaryStreamReaderThe input stream to read from.
Fields
EntrySize
The size of a single resource directory entry.
public const int EntrySize = 8
Field Value
Properties
DataOrSubDirOffset
Gets the offset (relative to the beginning of the resource directory) to the contents of the entry.
public uint DataOrSubDirOffset { get; }
Property Value
IdOrNameOffset
Gets either a 32-integer, or an offset to the name, that identifies the type, name or language ID.
public uint IdOrNameOffset { get; }
Property Value
IsByName
Gets a value indicating whether the resource was exposed by name.
public bool IsByName { get; }
Property Value
IsData
Gets a value indicating whether the resource entry is a data entry or not.
public bool IsData { get; }
Property Value
IsSubDirectory
Gets a value indicating whether the resource entry is a sub directory or not.
public bool IsSubDirectory { get; }
Property Value
Name
Gets the name of the entry (if available).
public string? Name { get; }
Property Value
Methods
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.