view 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
line wrap: on
line source
1 // Archive/LzmaItem.h
3 #ifndef __ARCHIVE_LZMA_ITEM_H
4 #define __ARCHIVE_LZMA_ITEM_H
6 #include "Common/Types.h"
8 #include "../../../../C/CpuArch.h"
10 namespace NArchive {
11 namespace NLzma {
13 struct CHeader
14 {
15 UInt64 UnpackSize;
16 bool IsThereFilter;
17 Byte FilterMethod;
18 Byte LzmaProps[5];
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 };
25 }}
27 #endif