Table of Contents

Struct LocalAddressGap

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

Defines a gap within a range of addresses a local variable is valid.

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

Constructors

LocalAddressGap(ushort, ushort)

Defines a gap within a range of addresses a local variable is valid.

public LocalAddressGap(ushort Start, ushort Length)

Parameters

Start ushort

The start offset, relative to the beginning of the range.

Length ushort

The number of bytes the range spans.

Fields

Size

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

public const uint Size = 4

Field Value

uint

Properties

End

Gets the (exclusive) end offset of the range.

public ushort End { get; }

Property Value

ushort

Length

The number of bytes the range spans.

public ushort Length { readonly get; set; }

Property Value

ushort

Start

The start offset, relative to the beginning of the range.

public ushort Start { readonly get; set; }

Property Value

ushort

Methods

FromReader(ref BinaryStreamReader)

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

public static LocalAddressGap FromReader(ref BinaryStreamReader reader)

Parameters

reader BinaryStreamReader

The input stream.

Returns

LocalAddressGap

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.