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