Table of Contents

Class SerializedPdbStream

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

Provides an implementation of a PDB stream that obtains GUIDs from a readable segment in a file.

public class SerializedPdbStream : PdbStream, IMetadataStream, ISegment, IOffsetProvider, IWritable
Inheritance
SerializedPdbStream
Implements
Inherited Members

Constructors

SerializedPdbStream(byte[])

Creates a new PDB stream with the provided byte array as the raw contents of the stream.

public SerializedPdbStream(byte[] rawData)

Parameters

rawData byte[]

The raw contents of the stream.

SerializedPdbStream(string, in BinaryStreamReader)

Creates a new PDB stream with the provided file segment reader as the raw contents of the stream.

public SerializedPdbStream(string name, in BinaryStreamReader reader)

Parameters

name string

The name of the stream.

reader BinaryStreamReader

The raw contents of the stream.

SerializedPdbStream(string, byte[])

Creates a new PDB stream with the provided byte array as the raw contents of the stream.

public SerializedPdbStream(string name, byte[] rawData)

Parameters

name string

The name of the stream.

rawData byte[]

The raw contents of the stream.

Properties

CanRead

Gets a value indicating whether the raw contents of the stream can be read using a binary stream reader.

public override bool CanRead { get; }

Property Value

bool

Methods

CreateReader()

Creates a binary reader that reads the raw contents of the metadata stream.

public override BinaryStreamReader CreateReader()

Returns

BinaryStreamReader

The reader.

Exceptions

InvalidOperationException

Occurs when CanRead is false.