Class MetadataHeap
- Namespace
- AsmResolver.PE.DotNet.Metadata
- Assembly
- AsmResolver.PE.dll
Provides a base implementation of a metadata heap.
public abstract class MetadataHeap : SegmentBase, IMetadataStream, ISegment, IOffsetProvider, IWritable
- Inheritance
-
MetadataHeap
- Implements
- Derived
- Inherited Members
Constructors
MetadataHeap(string)
Initializes the metadata heap with a name.
protected MetadataHeap(string name)
Parameters
name
stringThe name 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 virtual bool CanRead { get; }
Property Value
IndexSize
Gets a value indicating whether any index into this metadata heap will need 2 or 4 bytes to be encoded.
public IndexSize IndexSize { get; }
Property Value
Name
Gets or sets the name of the metadata stream.
public string Name { get; set; }
Property Value
Methods
CreateReader()
Creates a binary reader that reads the raw contents of the metadata stream.
public virtual BinaryStreamReader CreateReader()
Returns
- BinaryStreamReader
The reader.
Exceptions
- InvalidOperationException
Occurs when CanRead is
false
.