comparison src/win32/7zip/7z/CPP/7zip/Archive/Lzma/LzmaItem.h @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
comparison
equal deleted inserted replaced
0:8ced16adf2e1 1:f9f4f1b99eed
1 // Archive/LzmaItem.h
2
3 #ifndef __ARCHIVE_LZMA_ITEM_H
4 #define __ARCHIVE_LZMA_ITEM_H
5
6 #include "Common/Types.h"
7
8 #include "../../../../C/CpuArch.h"
9
10 namespace NArchive {
11 namespace NLzma {
12
13 struct CHeader
14 {
15 UInt64 UnpackSize;
16 bool IsThereFilter;
17 Byte FilterMethod;
18 Byte LzmaProps[5];
19
20 UInt32 GetDicSize() const { return GetUi32(LzmaProps + 1); }
21 bool HasUnpackSize() const { return (UnpackSize != (UInt64)(Int64)-1); }
22 unsigned GetHeaderSize() const { return 5 + 8 + (IsThereFilter ? 1 : 0); }
23 };
24
25 }}
26
27 #endif