mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-12 01:03:10 +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.
36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
namespace SabreTools.Data.Models.PlayJ
|
|
{
|
|
/// <summary>
|
|
/// Embedded data file (V2 only?)
|
|
/// </summary>
|
|
public sealed class DataFile
|
|
{
|
|
/// <summary>
|
|
/// Length of the data file name
|
|
/// </summary>
|
|
public ushort FileNameLength { get; set; }
|
|
|
|
/// <summary>
|
|
/// Data file name
|
|
/// </summary>
|
|
public string FileName { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Length of the data
|
|
/// </summary>
|
|
public uint DataLength { get; set; }
|
|
|
|
/// <summary>
|
|
/// Data
|
|
/// </summary>
|
|
public byte[] Data { get; set; } = [];
|
|
|
|
// Notes about Data:
|
|
// - Each data block in the samples contains a GIF header
|
|
// - Each GIF header contains an application extension: http://www.vurdalakov.net/misc/gif/application-extension
|
|
// - Each GIF doesn't always stretch to the end of the data
|
|
// - Remaining data seems to be padded as 0x00 (typically 8 bytes)
|
|
// - GIF data is fully formed and may be copied to a standalone file
|
|
}
|
|
}
|