Files
BinaryObjectScanner/BinaryObjectScanner.Models/Compression/LZ/Constants.cs

23 lines
655 B
C#
Raw Normal View History

2023-03-07 16:59:14 -05:00
namespace BinaryObjectScanner.Models.Compression.LZ
2022-12-28 10:46:33 -08:00
{
public static class Constants
{
2022-12-28 17:24:30 -08:00
public const int GETLEN = 2048;
2022-12-28 10:46:33 -08:00
public const int LZ_MAGIC_LEN = 8;
public const int LZ_HEADER_LEN = 14;
public static readonly byte[] MagicBytes = new byte[] { 0x53, 0x5a, 0x44, 0x44, 0x88, 0xf0, 0x27, 0x33 };
2022-12-28 17:24:30 -08:00
public static readonly string MagicString = System.Text.Encoding.ASCII.GetString(MagicBytes);
2022-12-28 10:46:33 -08:00
public const ulong MagicUInt64 = 0x3327f08844445a53;
public const int LZ_TABLE_SIZE = 0x1000;
public const int MAX_LZSTATES = 16;
public const int LZ_MIN_HANDLE = 0x400;
}
}