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
- offsetuint
- The offset to the contents of the stream. 
- sizeuint
- The size in bytes of the contents. 
- namestring
- 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
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
Size
Gets the number of bytes the stream contains.
public uint Size { get; }Property Value
Methods
FromReader(ref BinaryStreamReader)
Reads a single metadata stream header from an input stream.
public static MetadataStreamHeader FromReader(ref BinaryStreamReader reader)Parameters
- readerBinaryStreamReader
- 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.