namespace ARMeilleure.CodeGen.Linking { /// /// Represents a relocation. /// readonly struct RelocEntry { public const int Stride = 13; // Bytes. /// /// Gets the position of the relocation. /// public int Position { get; } /// /// Gets the of the relocation. /// public Symbol Symbol { get; } /// /// Initializes a new instance of the struct with the specified position and /// . /// /// Position of relocation /// Symbol of relocation public RelocEntry(int position, Symbol symbol) { Position = position; Symbol = symbol; } /// public override string ToString() { return $"({nameof(Position)} = {Position}, {nameof(Symbol)} = {Symbol})"; } } }