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
uintThe start address of the range.
SectionStart
ushortThe section the start address is located in.
Length
ushortThe 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
Properties
End
Gets the (exclusive) end address of the range.
public uint End { get; }
Property Value
Length
The number of bytes the range spans.
public ushort Length { readonly get; set; }
Property Value
SectionStart
The section the start address is located in.
public ushort SectionStart { readonly get; set; }
Property Value
Start
The start address of the range.
public uint Start { readonly get; set; }
Property Value
Methods
FromReader(ref BinaryStreamReader)
Reads a single local address range from the provided input stream.
public static LocalAddressRange FromReader(ref BinaryStreamReader reader)
Parameters
reader
BinaryStreamReaderThe 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
BinaryStreamWriterThe output stream to write the data to.