mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-23 22:59:48 +00:00
This change looks dramatic, but it's just separating out the already-split namespaces into separate top-level folders. In theory, every single one could be built into their own Nuget package. `SabreTools.Serialization` still builds the normal Nuget package that is used by all other projects and includes all namespaces.
30 lines
928 B
C#
30 lines
928 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Data.Models.N3DS
|
|
{
|
|
/// <summary>
|
|
/// There are 64 of these records, usually only the first is used.
|
|
/// </summary>
|
|
/// <see href="https://www.3dbrew.org/wiki/Title_metadata#Content_Info_Records"/>
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public sealed class ContentInfoRecord
|
|
{
|
|
/// <summary>
|
|
/// Content index offset
|
|
/// </summary>
|
|
public ushort ContentIndexOffset;
|
|
|
|
/// <summary>
|
|
/// Content command count [k]
|
|
/// </summary>
|
|
public ushort ContentCommandCount;
|
|
|
|
/// <summary>
|
|
/// SHA-256 hash of the next k content records that have not been hashed yet
|
|
/// </summary>
|
|
/// <remarks>0x20 bytes</remarks>
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 0x20)]
|
|
public byte[] UnhashedContentRecordsSHA256Hash = new byte[0x20];
|
|
}
|
|
}
|