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
rawDatabyte[]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
namestringThe name of the stream.
readerBinaryStreamReaderThe 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
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
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.