Show / Hide Table of Contents

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.

Inheritance
System.Object
AbstractStructure
METADATAHDR
Inherited Members
AbstractStructure.ToString()
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 Source

METADATAHDR(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 Source

Flags

Reserved flags field. Always 0.

Declaration
public ushort Flags { get; set; }
Property Value
Type Description
System.UInt16
| Improve this Doc View Source

MajorVersion

Major version.

Declaration
public ushort MajorVersion { get; set; }
Property Value
Type Description
System.UInt16
| Improve this Doc View Source

MetaDataStreamsHdrs

Array with all Meta Data Stream Headers.

Declaration
public METADATASTREAMHDR[] MetaDataStreamsHdrs { get; }
Property Value
Type Description
METADATASTREAMHDR[]
| Improve this Doc View Source

MinorVersion

Minor version.

Declaration
public ushort MinorVersion { get; set; }
Property Value
Type Description
System.UInt16
| Improve this Doc View Source

Reserved

Reserved. Always 0.

Declaration
public uint Reserved { get; set; }
Property Value
Type Description
System.UInt32
| Improve this Doc View Source

Signature

Signature. Always 0x424A5342 in a valid .Net assembly.

Declaration
public uint Signature { get; set; }
Property Value
Type Description
System.UInt32
| Improve this Doc View Source

Streams

Number of streams (sections) to follow.

Declaration
public ushort Streams { get; set; }
Property Value
Type Description
System.UInt16
| Improve this Doc View Source

Version

Version number as an UTF-8 string.

Declaration
public string Version { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
Back to top Generated by DocFX