using System.Runtime.InteropServices;
namespace SabreTools.Data.Models.N3DS
{
///
/// There are a maximum of 10 file headers in the ExeFS format. (This maximum
/// number of file headers is disputable, with makerom indicating a maximum of
/// 8 sections and makecia indicating a maximum of 10. From a non-SDK point of
/// view, the ExeFS header format can hold no more than 10 file headers within
/// the currently define size of 0x200 bytes.)
///
///
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
public sealed class ExeFSFileHeader
{
///
/// File name
///
/// 8 bytes
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 8)]
public string FileName = string.Empty;
///
/// File offset
///
public uint FileOffset;
///
/// File size
///
public uint FileSize;
}
}