Table of Contents

Struct LocalAddressRange

Namespace
AsmResolver.Symbols.Pdb.Records
Assembly
AsmResolver.Symbols.Pdb.dll

Defines a range of addresses a local variable is valid.

public record struct LocalAddressRange : IWritable, IEquatable<LocalAddressRange>
Implements
Inherited Members

Constructors

LocalAddressRange(uint, ushort, ushort)

Defines a range of addresses a local variable is valid.

public LocalAddressRange(uint Start, ushort SectionStart, ushort Length)

Parameters

Start uint

The start address of the range.

SectionStart ushort

The section the start address is located in.

Length ushort

The number of bytes the range spans.

Fields

EntrySize

Gets the size in bytes that a local address range structure occupies on the disk.

public const uint EntrySize = 8

Field Value

uint

Properties

End

Gets the (exclusive) end address of the range.

public uint End { get; }

Property Value

uint

Length

The number of bytes the range spans.

public ushort Length { readonly get; set; }

Property Value

ushort

SectionStart

The section the start address is located in.

public ushort SectionStart { readonly get; set; }

Property Value

ushort

Start

The start address of the range.

public uint Start { readonly get; set; }

Property Value

uint

Methods

FromReader(ref BinaryStreamReader)

Reads a single local address range from the provided input stream.

public static LocalAddressRange FromReader(ref BinaryStreamReader reader)

Parameters

reader BinaryStreamReader

The input stream.

Returns

LocalAddressRange

The range.

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 BinaryStreamWriter

The output stream to write the data to.