Files
SabreTools.Models/NewExecutable/ResourceTypeAndNameString.cs
Matt Nadareski 41a90278d5 Remove LayoutKind.Sequential
This may be replaced in the future when byte-serialzable types are more well-defined
2023-09-10 21:33:22 -04:00

28 lines
884 B
C#

namespace SabreTools.Models.NewExecutable
{
/// <summary>
/// Resource type and name strings are stored at the end of the
/// resource table. Note that these strings are NOT null terminated and
/// are case sensitive.
/// </summary>
/// <see href="http://bytepointer.com/resources/win16_ne_exe_format_win3.0.htm"/>
public sealed class ResourceTypeAndNameString
{
/// <summary>
/// Length of the type or name string that follows. A zero value
/// indicates the end of the resource type and name string, also
/// the end of the resource table.
/// </summary>
public byte Length { get; set; }
/// <summary>
/// ASCII text of the type or name string.
/// </summary>
#if NET48
public byte[] Text { get; set; }
#else
public byte[]? Text { get; set; }
#endif
}
}