Files
BinaryObjectScanner/BinaryObjectScanner.Models/PlayJ/DataFile.cs
Matt Nadareski 473cbc5694 BOS.* -> BOS.*
2023-03-07 16:59:14 -05:00

35 lines
1.0 KiB
C#

namespace BinaryObjectScanner.Models.PlayJ
{
/// <summary>
/// Embedded data file (V2 only?)
/// </summary>
public sealed class DataFile
{
/// <summary>
/// Length of the data file name
/// </summary>
public ushort FileNameLength;
/// <summary>
/// Data file name
/// </summary>
public string FileName;
/// <summary>
/// Length of the data
/// </summary>
public uint DataLength;
/// <summary>
/// Data
/// </summary>
public byte[] Data;
// 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
}
}