mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-07-09 02:16:55 +00:00
Code originally by https://github.com/Dimensional and split off from https://github.com/SabreTools/SabreTools.Serialization/pull/85/
45 lines
1.5 KiB
C#
45 lines
1.5 KiB
C#
namespace SabreTools.Data.Models.WIA
|
|
{
|
|
/// <summary>
|
|
/// WIA group entry pointing to compressed data for one group. Size: 0x08 bytes.
|
|
/// DataOffset is stored on-disk as the actual byte offset shifted right by 2 (i.e. >>2).
|
|
/// </summary>
|
|
public sealed class WiaGroupEntry
|
|
{
|
|
/// <summary>
|
|
/// Actual byte offset of this group's data within the WIA file.
|
|
/// (On disk this value is stored as <c>offset >> 2</c>.)
|
|
/// </summary>
|
|
public ulong DataOffset { get; set; }
|
|
|
|
/// <summary>
|
|
/// Compressed size of this group's data in bytes (0 means group contains only zeroes)
|
|
/// </summary>
|
|
public uint DataSize { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// RVZ group entry — extends <see cref="WiaGroupEntry"/> with a packed-data size field.
|
|
/// Size: 0x0C bytes.
|
|
/// </summary>
|
|
public sealed class RvzGroupEntry
|
|
{
|
|
/// <summary>
|
|
/// Actual byte offset of this group's data within the RVZ file.
|
|
/// (On disk this value is stored as <c>offset >> 2</c>.)
|
|
/// </summary>
|
|
public ulong DataOffset { get; set; }
|
|
|
|
/// <summary>
|
|
/// Total size of this group's data (compressed + any RVZ-pack section) in bytes
|
|
/// </summary>
|
|
public uint DataSize { get; set; }
|
|
|
|
/// <summary>
|
|
/// Size of the RVZ-packed (junk-stripped) portion within this group's data.
|
|
/// 0 means no RVZ packing was applied.
|
|
/// </summary>
|
|
public uint RvzPackedSize { get; set; }
|
|
}
|
|
}
|