2025-09-26 13:06:18 -04:00
|
|
|
namespace SabreTools.Data.Models.SecuROM
|
2025-09-26 12:09:34 -04:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents a single key-length-value tuple in a
|
|
|
|
|
/// SecuROM DFA file
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class DFAEntry
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Entry name, always 4 ASCII characters
|
|
|
|
|
/// </summary>
|
2025-10-31 13:59:28 -04:00
|
|
|
public string Name { get; set; } = string.Empty;
|
2025-09-26 12:09:34 -04:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Length of the value in bytes
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint Length { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-10-30 20:44:16 -04:00
|
|
|
/// Value of the entry whose length is given by <see cref="Length"/>
|
2025-09-26 12:09:34 -04:00
|
|
|
/// </summary>
|
2025-10-31 13:59:28 -04:00
|
|
|
public byte[] Value { get; set; } = [];
|
2025-09-26 12:09:34 -04:00
|
|
|
}
|
2025-10-30 20:44:16 -04:00
|
|
|
}
|