mirror of
https://github.com/SabreTools/SabreTools.Models.git
synced 2026-09-24 15:47:27 +00:00
36 lines
886 B
C#
36 lines
886 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Models.PlayStation3
|
|
{
|
|
/// <see href="https://psdevwiki.com/ps3/PARAM.SFO"/>
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public class SFOHeader
|
|
{
|
|
/// <summary>
|
|
/// "\0PSF"
|
|
/// </summary>
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]
|
|
public byte[]? Magic;
|
|
|
|
/// <summary>
|
|
/// Version
|
|
/// </summary>
|
|
public uint Version;
|
|
|
|
/// <summary>
|
|
/// Absolute start offset of key_table
|
|
/// </summary>
|
|
public uint KeyTableStart;
|
|
|
|
/// <summary>
|
|
/// Absolute start offset of data_table
|
|
/// </summary>
|
|
public uint DataTableStart;
|
|
|
|
/// <summary>
|
|
/// Number of entries in index_table, key_table, and data_table
|
|
/// </summary>
|
|
public uint TablesEntries;
|
|
}
|
|
}
|