2017-05-04 02:41:11 -07:00
|
|
|
|
namespace SabreTools.Library.Data
|
2016-04-12 15:03:47 -07:00
|
|
|
|
{
|
2019-01-08 11:10:04 -08:00
|
|
|
|
#region Archival
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Compression method based on flag
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public enum CompressionMethod : ushort
|
|
|
|
|
|
{
|
2020-07-15 09:41:59 -07:00
|
|
|
|
Stored = 0,
|
|
|
|
|
|
Shrunk = 1,
|
|
|
|
|
|
ReducedCompressionFactor1 = 2,
|
|
|
|
|
|
ReducedCompressionFactor2 = 3,
|
|
|
|
|
|
ReducedCompressionFactor3 = 4,
|
|
|
|
|
|
ReducedCompressionFactor4 = 5,
|
|
|
|
|
|
Imploded = 6,
|
|
|
|
|
|
Tokenizing = 7,
|
|
|
|
|
|
Deflated = 8,
|
|
|
|
|
|
Delfate64 = 9,
|
|
|
|
|
|
PKWAREDataCompressionLibrary = 10,
|
|
|
|
|
|
Type11 = 11, // Reserved and unused (SHOULD NOT BE USED)
|
|
|
|
|
|
BZIP2 = 12,
|
|
|
|
|
|
Type13 = 13, // Reserved and unused (SHOULD NOT BE USED)
|
|
|
|
|
|
LZMA = 14,
|
|
|
|
|
|
Type15 = 15, // Reserved and unused (SHOULD NOT BE USED)
|
|
|
|
|
|
Type16 = 16, // Reserved and unused (SHOULD NOT BE USED)
|
|
|
|
|
|
Type17 = 17, // Reserved and unused (SHOULD NOT BE USED)
|
|
|
|
|
|
IBMTERSE = 18,
|
|
|
|
|
|
IBMLZ77 = 19,
|
|
|
|
|
|
WavPak = 97,
|
|
|
|
|
|
PPMdVersionIRev1 = 98,
|
2019-01-08 11:10:04 -08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
2020-06-13 23:28:55 -07:00
|
|
|
|
#region Reader related
|
|
|
|
|
|
|
2020-06-15 10:56:47 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Different types of CMP rows being parsed
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public enum CmpRowType
|
|
|
|
|
|
{
|
|
|
|
|
|
None,
|
|
|
|
|
|
TopLevel,
|
|
|
|
|
|
Standalone,
|
|
|
|
|
|
Internal,
|
|
|
|
|
|
Comment,
|
2020-06-15 12:41:39 -07:00
|
|
|
|
EndTopLevel,
|
2020-06-15 10:56:47 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
2020-06-13 23:28:55 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Different types of INI rows being parsed
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public enum IniRowType
|
|
|
|
|
|
{
|
|
|
|
|
|
None,
|
|
|
|
|
|
SectionHeader,
|
|
|
|
|
|
KeyValue,
|
|
|
|
|
|
Comment,
|
|
|
|
|
|
Invalid,
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
2016-04-12 15:03:47 -07:00
|
|
|
|
}
|