mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-05 22:01:33 +00:00
* ZArchive support * Fix offset record format * Simplfiy Extensions * Delete unused writers and test data * Rework reader * Fix build
28 lines
975 B
C#
28 lines
975 B
C#
namespace SabreTools.Data.Models.ZArchive
|
|
{
|
|
/// <summary>
|
|
/// Filename entry in the NameTable
|
|
/// </summary>
|
|
/// <see href="https://github.com/Exzap/ZArchive/"/>
|
|
public class NameEntry
|
|
{
|
|
/// <summary>
|
|
/// Filename length, with MSB set to 0 for filenames less than 127 long
|
|
/// NodeLengthShort and NodeLengthLong fields are exclusive, and one must be present
|
|
/// </summary>
|
|
public byte? NodeLengthShort { get; set; }
|
|
|
|
/// <summary>
|
|
/// Filename length, with prefix byte's MSB set to 1 for filenames greater than 127 long
|
|
/// NodeLengthShort and NodeLengthLong fields are exclusive, and one must be present
|
|
/// </summary>
|
|
public ushort? NodeLengthLong { get; set; }
|
|
|
|
/// <summary>
|
|
/// UTF-8 encoded file name
|
|
/// </summary>
|
|
/// <remarks>Maximum length of 2^15 - 1 bytes</remarks>
|
|
public byte[] NodeName { get; set; } = [];
|
|
}
|
|
}
|