Mercurial > vba-linux
diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/win32/7zip/7z/CPP/7zip/Archive/Lzma/LzmaItem.h Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,27 @@ 1.4 +// Archive/LzmaItem.h 1.5 + 1.6 +#ifndef __ARCHIVE_LZMA_ITEM_H 1.7 +#define __ARCHIVE_LZMA_ITEM_H 1.8 + 1.9 +#include "Common/Types.h" 1.10 + 1.11 +#include "../../../../C/CpuArch.h" 1.12 + 1.13 +namespace NArchive { 1.14 +namespace NLzma { 1.15 + 1.16 +struct CHeader 1.17 +{ 1.18 + UInt64 UnpackSize; 1.19 + bool IsThereFilter; 1.20 + Byte FilterMethod; 1.21 + Byte LzmaProps[5]; 1.22 + 1.23 + UInt32 GetDicSize() const { return GetUi32(LzmaProps + 1); } 1.24 + bool HasUnpackSize() const { return (UnpackSize != (UInt64)(Int64)-1); } 1.25 + unsigned GetHeaderSize() const { return 5 + 8 + (IsThereFilter ? 1 : 0); } 1.26 +}; 1.27 + 1.28 +}} 1.29 + 1.30 +#endif