using System; namespace SabreTools.Data.Models.GZIP { /// public enum CompressionMethod : byte { RESERVED0 = 0, RESERVED1 = 1, RESERVED2 = 2, RESERVED3 = 3, RESERVED4 = 4, RESERVED5 = 5, RESERVED6 = 6, RESERVED7 = 7, Deflate = 8, } /// [Flags] public enum ExtraFlags : byte { /// /// Compressor used maximum compression, slowest algorithm /// MaximumCompression = 0x02, /// /// Compressor used fastest algorithm /// FastestAlgorithm = 0x04, } /// [Flags] public enum Flags : byte { /// /// The file is probably ASCII text /// FTEXT = 0x01, /// /// CRC-16 for the gzip header is present /// FHCRC = 0x02, /// /// Optional extra fields are present /// FEXTRA = 0x04, /// /// Original filename is present /// FNAME = 0x08, /// /// Zero-terminated file comment is present /// FCOMMENT = 0x10, RESERVED5 = 0x20, RESERVED6 = 0x40, RESERVED7 = 0x80, } /// /// TorrentGZ alternative header types /// public enum HeaderFileType { // Archive Nothing = 0x00, ZIP = 0x01, GZ = 0x02, SevenZip = 0x03, RAR = 0x04, // Specialty CHD = 0x05, // Copier header A7800 = 0x06, Lynx = 0x07, FDS = 0x08, NES = 0x09, PCE = 0x0A, PSID = 0x0B, SNES = 0x0C, SPC = 0x0D, } /// public enum OperatingSystem : byte { /// /// FAT filesystem (MS-DOS, OS/2, NT/Win32) /// FAT = 0, /// /// Amiga /// Amiga = 1, /// /// VMS (or OpenVMS) /// VMS = 2, /// /// Unix /// Unix = 3, /// /// VM/CMS /// VMCMS = 4, /// /// Atari TOS /// AtariTOS = 5, /// /// HPFS filesystem (OS/2, NT) /// HPFS = 6, /// /// Macintosh /// Macintosh = 7, /// /// Z-System /// ZSystem = 8, /// /// CP/M /// CPM = 9, /// /// TOPS-20 /// TOPS20 = 10, /// /// NTFS filesystem (NT) /// NTFS = 11, /// /// QDOS /// QDOS = 12, /// /// Acorn RISCOS /// AcornRISCOS = 13, /// /// unknown /// Unknown = 255, } }