Table of Contents

Struct MetadataStreamHeader

Namespace
AsmResolver.PE.DotNet.Metadata
Assembly
AsmResolver.PE.dll

Represents a raw metadata stream header, defining the offset, size and name of a metadata stream.

public readonly struct MetadataStreamHeader
Inherited Members

Constructors

MetadataStreamHeader(uint, uint, string)

Creates a new metadata stream header.

public MetadataStreamHeader(uint offset, uint size, string name)

Parameters

offset uint

The offset to the contents of the stream.

size uint

The size in bytes of the contents.

name string

The name of the stream.

Exceptions

ArgumentOutOfRangeException

Occurs when the name is too long.

Properties

Name

Gets the name of the stream.

public string Name { get; }

Property Value

string

Offset

Gets the offset (relative to the start of the metadata directory) referencing the beginning of the contents of the stream.

public uint Offset { get; }

Property Value

uint

Size

Gets the number of bytes the stream contains.

public uint Size { get; }

Property Value

uint

Methods

FromReader(ref BinaryStreamReader)

Reads a single metadata stream header from an input stream.

public static MetadataStreamHeader FromReader(ref BinaryStreamReader reader)

Parameters

reader BinaryStreamReader

The input stream.

Returns

MetadataStreamHeader

The header.

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.