2023-03-07 16:59:14 -05:00
|
|
|
namespace BinaryObjectScanner.Models.N3DS
|
2023-01-06 15:20:10 -08:00
|
|
|
{
|
2023-01-09 09:53:57 -08:00
|
|
|
/// <see href="https://www.3dbrew.org/wiki/CIA#CIA_Header"/>
|
2023-01-06 15:20:10 -08:00
|
|
|
public sealed class CIAHeader
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Archive header size, usually 0x2020 bytes
|
|
|
|
|
/// </summary>
|
2023-01-09 09:53:57 -08:00
|
|
|
public uint HeaderSize;
|
2023-01-06 15:20:10 -08:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Type
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ushort Type;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Version
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ushort Version;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Certificate chain size
|
|
|
|
|
/// </summary>
|
2023-01-09 09:53:57 -08:00
|
|
|
public uint CertificateChainSize;
|
2023-01-06 15:20:10 -08:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Ticket size
|
|
|
|
|
/// </summary>
|
2023-01-09 09:53:57 -08:00
|
|
|
public uint TicketSize;
|
2023-01-06 15:20:10 -08:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// TMD file size
|
|
|
|
|
/// </summary>
|
2023-01-09 09:53:57 -08:00
|
|
|
public uint TMDFileSize;
|
2023-01-06 15:20:10 -08:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Meta size (0 if no Meta data is present)
|
|
|
|
|
/// </summary>
|
2023-01-09 09:53:57 -08:00
|
|
|
public uint MetaSize;
|
2023-01-06 15:20:10 -08:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Content size
|
|
|
|
|
/// </summary>
|
2023-01-09 09:53:57 -08:00
|
|
|
public ulong ContentSize;
|
2023-01-06 15:20:10 -08:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Content Index
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte[] ContentIndex;
|
|
|
|
|
}
|
|
|
|
|
}
|