mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-14 18:23:08 +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.
38 lines
1021 B
C#
38 lines
1021 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Data.Models.PlayStation3
|
|
{
|
|
/// <see href="https://psdevwiki.com/ps3/PARAM.SFO"/>
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public class SFOIndexTableEntry
|
|
{
|
|
/// <summary>
|
|
/// Key relative offset.
|
|
/// (Absolute start offset of key) - (Absolute start offset of key_table)
|
|
/// </summary>
|
|
public ushort KeyOffset;
|
|
|
|
/// <summary>
|
|
/// Data type
|
|
/// </summary>
|
|
[MarshalAs(UnmanagedType.U2)]
|
|
public DataFormat DataFormat;
|
|
|
|
/// <summary>
|
|
/// Data used length
|
|
/// </summary>
|
|
public uint DataLength;
|
|
|
|
/// <summary>
|
|
/// Data total length. TITLE_ID is always = 16 bytes
|
|
/// </summary>
|
|
public uint DataMaxLength;
|
|
|
|
/// <summary>
|
|
/// Data relative offset.
|
|
/// (Absolute start offset of data_1) - (Absolute start offset of data_table)
|
|
/// </summary>
|
|
public uint DataOffset;
|
|
}
|
|
}
|