Class METADATAHDR
The Meta Data Header is part of the .Net/CLI (COM+ 2) header and is reachable from the .Net/CLI (COM+2) header IMAGE_COR20_HEADER. It contains information about embedded streams (sections) in the .Net assembly.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: PeNet.Structures
Assembly: PeNet.dll
Syntax
public class METADATAHDR : AbstractStructure
Constructors
| Improve this Doc View SourceMETADATAHDR(Byte[], UInt32)
Create a new Meta Data Header from a byte array.
Declaration
public METADATAHDR(byte[] buff, uint offset)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buff | Byte buffer which contains a Meta Data Header. |
System.UInt32 | offset | Offset of the header start in the byte buffer. |
Properties
| Improve this Doc View SourceFlags
Reserved flags field. Always 0.
Declaration
public ushort Flags { get; set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
MajorVersion
Major version.
Declaration
public ushort MajorVersion { get; set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
MetaDataStreamsHdrs
Array with all Meta Data Stream Headers.
Declaration
public METADATASTREAMHDR[] MetaDataStreamsHdrs { get; }
Property Value
Type | Description |
---|---|
METADATASTREAMHDR[] |
MinorVersion
Minor version.
Declaration
public ushort MinorVersion { get; set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
Reserved
Reserved. Always 0.
Declaration
public uint Reserved { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Signature
Signature. Always 0x424A5342 in a valid .Net assembly.
Declaration
public uint Signature { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Streams
Number of streams (sections) to follow.
Declaration
public ushort Streams { get; set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
Version
Version number as an UTF-8 string.
Declaration
public string Version { get; }
Property Value
Type | Description |
---|---|
System.String |
VersionLength
Length of the UTF-8 version string rounded up to a multiple of 4. For e.g., v1.3.4323
Declaration
public uint VersionLength { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |