Skip to content

SectionInfo

Namespace: Dotsider.Core.Analysis.Models

Assembly: Dotsider.Core.dll

Information about a single PE section (e.g., .text, .rsrc, .reloc).

public sealed record SectionInfo : IEquatable<SectionInfo>

ObjectSectionInfo

SectionInfo(string, int, int, int, int, SectionCharacteristics)

Section titled “SectionInfo(string, int, int, int, int, SectionCharacteristics)”

Information about a single PE section (e.g., .text, .rsrc, .reloc).

Parameters:

  • Name (String): The section name (up to 8 characters).
  • VirtualAddress (Int32): The RVA of the section when loaded into memory.
  • VirtualSize (Int32): The size of the section in memory.
  • RawDataOffset (Int32): The file offset of the section’s raw data.
  • RawDataSize (Int32): The size of the section’s raw data on disk.
  • Characteristics (SectionCharacteristics): Section characteristic flags (readable, writable, executable, etc.).
public SectionInfo(string Name, int VirtualAddress, int VirtualSize, int RawDataOffset, int RawDataSize, SectionCharacteristics Characteristics)

Section characteristic flags (readable, writable, executable, etc.).

Returns: SectionCharacteristics

public SectionCharacteristics Characteristics { get; init; }

The section name (up to 8 characters).

Returns: String

public string Name { get; init; }

The file offset of the section’s raw data.

Returns: Int32

public int RawDataOffset { get; init; }

The size of the section’s raw data on disk.

Returns: Int32

public int RawDataSize { get; init; }

The RVA of the section when loaded into memory.

Returns: Int32

public int VirtualAddress { get; init; }

The size of the section in memory.

Returns: Int32

public int VirtualSize { get; init; }