Move archive constants

This commit is contained in:
Matt Nadareski
2020-12-09 14:45:11 -08:00
parent 218dad20d2
commit 549c93bb43
5 changed files with 77 additions and 69 deletions

View File

@@ -15,6 +15,19 @@ namespace SabreTools.FileTypes
/// </summary>
public class XZArchive : BaseArchive
{
#region Constants
/* (Torrent)XZ Header Format
https://tukaani.org/xz/xz-file-format.txt
00-05 Identification (0xFD, '7', 'z', 'X', 'Z', 0x00) XzSignature
06 Flags (0x01 - CRC32, 0x04 - CRC64, 0x0A - SHA-256)
07-0A Flags CRC32 (uint, little-endian)
*/
private readonly static byte[] TorrentXZHeader = new byte[] { 0xfd, 0x37, 0x7a, 0x58, 0x5a, 0x00, 0x01, 0x69, 0x22, 0xde, 0x36 };
#endregion
#region Fields
/// <summary>