Struct ManifestResourceRow
- Namespace
- AsmResolver.PE.DotNet.Metadata.Tables
- Assembly
- AsmResolver.PE.dll
Represents a single row in the manifest resource metadata table.
public struct ManifestResourceRow : IMetadataRow, IReadOnlyList<uint>, IReadOnlyCollection<uint>, IEnumerable<uint>, IEnumerable, IEquatable<ManifestResourceRow>
- Implements
- Inherited Members
Constructors
ManifestResourceRow(uint, ManifestResourceAttributes, uint, uint)
Creates a new row for the manifest resource metadata table.
public ManifestResourceRow(uint offset, ManifestResourceAttributes attributes, uint name, uint implementation)
Parameters
offsetuintThe byte offset within the referenced file at which the resource record begins.
attributesManifestResourceAttributesThe attributes associated with this resource.
nameuintThe index into the #Strings heap referencing the name of the resource.
implementationuintThe Implementation index (an index into either the File, AssemblyRef or ExportedType table) indicating the file that contains the resource data.
Properties
Attributes
Gets or sets the attributes associated with this resource.
public ManifestResourceAttributes Attributes { readonly get; set; }
Property Value
Count
public int Count { get; }
Property Value
Implementation
Gets or sets an Implementation index (an index into either the File, AssemblyRef or ExportedType table) indicating the file that contains the resource data.
public uint Implementation { readonly get; set; }
Property Value
Remarks
When this field is set to zero, the resource data is embedded into the current assembly.
this[int]
public uint this[int index] { get; }
Parameters
indexint
Property Value
Name
Gets or sets an index into the #Strings heap referencing the name of the resource.
public uint Name { readonly get; set; }
Property Value
Offset
Gets or sets the byte offset within the referenced file at which the resource record begins.
public uint Offset { readonly get; set; }
Property Value
TableIndex
Gets or sets the index of the table that this row is stored in.
public TableIndex TableIndex { get; }
Property Value
Methods
Equals(ManifestResourceRow)
public bool Equals(ManifestResourceRow other)
Parameters
otherManifestResourceRow
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
FromReader(ref BinaryStreamReader, TableLayout)
Reads a single manifest resource row from an input stream.
public static ManifestResourceRow FromReader(ref BinaryStreamReader reader, TableLayout layout)
Parameters
readerBinaryStreamReaderThe input stream.
layoutTableLayoutThe layout of the manifest resource table.
Returns
- ManifestResourceRow
The row.
GetEnumerator()
public IEnumerator<uint> GetEnumerator()
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Write(BinaryStreamWriter, TableLayout)
Writes the row to an output stream.
public void Write(BinaryStreamWriter writer, TableLayout layout)
Parameters
writerBinaryStreamWriterThe output stream writer.
layoutTableLayoutThe new layout of the table.
Operators
operator ==(ManifestResourceRow, ManifestResourceRow)
Determines whether two rows are considered equal.
public static bool operator ==(ManifestResourceRow left, ManifestResourceRow right)
Parameters
leftManifestResourceRowrightManifestResourceRow
Returns
operator !=(ManifestResourceRow, ManifestResourceRow)
Determines whether two rows are not considered equal.
public static bool operator !=(ManifestResourceRow left, ManifestResourceRow right)
Parameters
leftManifestResourceRowrightManifestResourceRow