File: CabHeader.h

package info (click to toggle)
p7zip 16.02%2Bdfsg-3%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 14,112 kB
  • sloc: cpp: 167,145; ansic: 14,992; python: 1,911; asm: 1,688; sh: 1,132; makefile: 701
file content (41 lines) | stat: -rw-r--r-- 744 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Archive/CabHeader.h

#ifndef __ARCHIVE_CAB_HEADER_H
#define __ARCHIVE_CAB_HEADER_H

#include "../../../Common/MyTypes.h"

namespace NArchive {
namespace NCab {
namespace NHeader {

const unsigned kMarkerSize = 8;
extern const Byte kMarker[kMarkerSize];

namespace NArcFlags
{
  const unsigned kPrevCabinet = 1;
  const unsigned kNextCabinet = 2;
  const unsigned kReservePresent = 4;
}

namespace NMethod
{
  const Byte kNone = 0;
  const Byte kMSZip = 1;
  const Byte kQuantum = 2;
  const Byte kLZX = 3;
}

const unsigned kFileNameIsUtf8_Mask = 0x80;

namespace NFolderIndex
{
  const unsigned kContinuedFromPrev    = 0xFFFD;
  const unsigned kContinuedToNext      = 0xFFFE;
  const unsigned kContinuedPrevAndNext = 0xFFFF;
}

}}}

#endif