namespace SabreTools.Data.Models.PKZIP
{
///
/// PKZIP local file
///
///
///
public class LocalFile
{
///
/// Local file header
///
public LocalFileHeader LocalFileHeader { get; set; } = new();
///
/// Encryption header
///
/// TODO: Determine the model for the encryption headers
public byte[] EncryptionHeaders { get; set; } = [];
///
/// File data, appears after the encryption header
/// if it exists or after the local file header otherwise
///
public byte[] FileData { get; set; } = [];
///
/// Data descriptors, appears after the file data
///
/// Cannot exist if is populated
public DataDescriptor? DataDescriptor { get; set; }
///
/// ZIP64 Data descriptors, appears after the file data
///
/// Cannot exist if is populated
public DataDescriptor64? ZIP64DataDescriptor { get; set; }
}
}