using System;
namespace ARMeilleure.CodeGen.Linking
{
///
/// Represents relocation information about a .
///
readonly struct RelocInfo
{
///
/// Gets an empty .
///
public static RelocInfo Empty { get; } = new RelocInfo(null);
private readonly RelocEntry[] _entries;
///
/// Gets the set of .
///
public ReadOnlySpan Entries => _entries ?? Array.Empty();
///
/// Initializes a new instance of the struct with the specified set of
/// .
///
/// Set of to use
public RelocInfo(RelocEntry[] entries)
{
_entries = entries ?? Array.Empty();
}
}
}