namespace SabreTools.Data.Models.ZArchive
{
///
/// Filename entry in the NameTable
///
///
public class NameEntry
{
///
/// Filename length, with MSB set to 0 for filenames less than 127 long
/// NodeLengthShort and NodeLengthLong fields are exclusive, and one must be present
///
public byte? NodeLengthShort { get; set; }
///
/// 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
///
public ushort? NodeLengthLong { get; set; }
///
/// UTF-8 encoded file name
///
/// Maximum length of 2^15 - 1 bytes
public byte[] NodeName { get; set; } = [];
}
}