Class SectionMap
- Namespace
- AsmResolver.Symbols.Pdb.Metadata.Dbi
- Assembly
- AsmResolver.Symbols.Pdb.dll
Represents a single entry in the Section Map sub stream of the DBI stream.
public class SectionMap : IWritable
- Inheritance
-
SectionMap
- Implements
- Inherited Members
Fields
EntrySize
The total size in bytes of a single SectionMap on the disk.
public const int EntrySize = 20
Field Value
Properties
Attributes
Gets or sets the attributes assigned to this section map.
public SectionMapAttributes Attributes { get; set; }
Property Value
ClassName
Gets or sets the byte offset of the class in the string table, or 0xFFFF if no name was assigned..
public ushort ClassName { get; set; }
Property Value
Frame
Gets or sets the frame index.
public ushort Frame { get; set; }
Property Value
Group
Gets or sets the group index into the descriptor array.
public ushort Group { get; set; }
Property Value
LogicalOverlayNumber
Gets or sets the logical overlay number of this section map.
public ushort LogicalOverlayNumber { get; set; }
Property Value
Offset
Gets or sets the byte offset of the logical segment within physical segment. If group is set in flags, this is the offset of the group.
public uint Offset { get; set; }
Property Value
SectionLength
Gets or sets the number of bytes that the segment or group consists of.
public uint SectionLength { get; set; }
Property Value
SectionName
Gets or sets the byte offset of the segment or group name in string table, or 0xFFFF if no name was assigned.
public ushort SectionName { get; set; }
Property Value
Methods
FromReader(ref BinaryStreamReader)
Parses a single section map from the provided input stream.
public static SectionMap FromReader(ref BinaryStreamReader reader)
Parameters
reader
BinaryStreamReaderThe input stream.
Returns
- SectionMap
The parsed section map.
GetPhysicalSize()
Computes the number of bytes that the structure contains.
public uint GetPhysicalSize()
Returns
- uint
The number of bytes.
Write(BinaryStreamWriter)
Serializes the structure to an output stream.
public void Write(BinaryStreamWriter writer)
Parameters
writer
BinaryStreamWriterThe output stream to write the data to.