mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-24 07:09:42 +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.
44 lines
1.2 KiB
C#
44 lines
1.2 KiB
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Data.Models.N3DS
|
|
{
|
|
/// <summary>
|
|
/// There is one of these for each content contained in this title.
|
|
/// (Determined by "Content Count" in the TMD Header).
|
|
/// </summary>
|
|
/// <see href="https://www.3dbrew.org/wiki/Title_metadata#Content_chunk_records"/>
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public sealed class ContentChunkRecord
|
|
{
|
|
/// <summary>
|
|
/// Content id
|
|
/// </summary>
|
|
public uint ContentId;
|
|
|
|
/// <summary>
|
|
/// Content index
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This does not apply to DLC.
|
|
/// </remarks>
|
|
public ContentIndex ContentIndex;
|
|
|
|
/// <summary>
|
|
/// Content type
|
|
/// </summary>
|
|
public TMDContentType ContentType;
|
|
|
|
/// <summary>
|
|
/// Content size
|
|
/// </summary>
|
|
public ulong ContentSize;
|
|
|
|
/// <summary>
|
|
/// SHA-256 hash
|
|
/// </summary>
|
|
/// <remarks>0x20 bytes</remarks>
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 0x20)]
|
|
public byte[] SHA256Hash = new byte[0x20];
|
|
}
|
|
}
|