xref: /aosp_15_r20/external/lzma/CPP/7zip/Archive/Cab/CabHeader.h (revision f6dc9357d832569d4d1f5d24eacdb3935a1ae8e6)
1 // Archive/CabHeader.h
2 
3 #ifndef ZIP7_INC_ARCHIVE_CAB_HEADER_H
4 #define ZIP7_INC_ARCHIVE_CAB_HEADER_H
5 
6 #include "../../../Common/MyTypes.h"
7 
8 namespace NArchive {
9 namespace NCab {
10 namespace NHeader {
11 
12 const unsigned kMarkerSize = 8;
13 extern const Byte kMarker[kMarkerSize];
14 
15 namespace NArcFlags
16 {
17   const unsigned kPrevCabinet = 1;
18   const unsigned kNextCabinet = 2;
19   const unsigned kReservePresent = 4;
20 }
21 
22 namespace NMethod
23 {
24   const Byte kNone = 0;
25   const Byte kMSZip = 1;
26   const Byte kQuantum = 2;
27   const Byte kLZX = 3;
28 }
29 
30 const unsigned kFileNameIsUtf8_Mask = 0x80;
31 
32 namespace NFolderIndex
33 {
34   const unsigned kContinuedFromPrev    = 0xFFFD;
35   const unsigned kContinuedToNext      = 0xFFFE;
36   const unsigned kContinuedPrevAndNext = 0xFFFF;
37 }
38 
39 }}}
40 
41 #endif
42