Lhaz
読み取り中…
検索中…
一致する文字列を見つけられません
lhazlz4.h
[詳解]
1/*************************************************************************/
6#pragma once
7
8#include "lhazarc.h"
9
10class LHAZPROCFILE;
11class PATH;
12
13namespace gui {
14
15class LHAZTREEVIEW;
16
17} // namespace gui
18
19class ARCLZ4 : public ARCHIVE {
20public:
21 static bool IsArchiveLZ4(const WSTR& name, DWORD size, const MYBUF& buf);
22 //
23 // 全解凍用コンストラクタ
24 ARCLZ4(HWND hwnd, const WSTR& name, TYPE type);
25 // 閲覧用コンストラクタ
26 ARCLZ4(HWND hwnd, const WSTR& name, TYPE type, const WSTR& filter, gui::LHAZTREEVIEW* treeview);
27 // 全解凍
28 bool Extract(bool verify, const WSTR& temp, const WSTR& password);
29 // 個別解凍
30 bool Extract(const WSTR& temp);
31 // 圧縮
32 bool Compress(int method, int header, const WSTR& pass, const PATH& temp, const std::vector<LHAZPROCFILE>& v);
33 // 個別削除
34 bool Delete(const std::vector<LHAZFILE*>& v);
35
36private:
37 enum {
38 LZ4S_MAGICNUMBER = 0x184D2204,
39 LEGACY_MAGICNUMBER = 0x184C2102,
40 LZ4S_SKIPPABLE0 = 0x184D2A50,
41 LZ4S_SKIPPABLEMASK = 0xFFFFFFF0,
42 };
43 //
44 static const char METHOD[];
45 //
46 static bool LZ4S_isSkippableMagicNumber(unsigned int magic);
47 //
48 bool Test(void);
49
50};
Definition lhazarc.h:25
TYPE
Definition lhazarc.h:28
Definition lhazlz4.h:19
static const char METHOD[]
Definition lhazlz4.h:44
@ LZ4S_SKIPPABLE0
Definition lhazlz4.h:40
@ LZ4S_MAGICNUMBER
Definition lhazlz4.h:38
@ LEGACY_MAGICNUMBER
Definition lhazlz4.h:39
@ LZ4S_SKIPPABLEMASK
Definition lhazlz4.h:41
bool Delete(const std::vector< LHAZFILE * > &v)
Delete
Definition lhazlz4.cpp:107
bool Compress(int method, int header, const WSTR &pass, const PATH &temp, const std::vector< LHAZPROCFILE > &v)
Compress
Definition lhazlz4.cpp:81
bool Extract(bool verify, const WSTR &temp, const WSTR &password)
Extract
Definition lhazlz4.cpp:115
static bool LZ4S_isSkippableMagicNumber(unsigned int magic)
IsArchiveLZ4
Definition lhazlz4.cpp:192
bool Test(void)
Test
Definition lhazlz4.cpp:200
static bool IsArchiveLZ4(const WSTR &name, DWORD size, const MYBUF &buf)
IsArchiveLZ4
Definition lhazlz4.cpp:171
Definition lhazprocfile.h:11
Definition lhaztreeview.h:18
Archive
¥ type v
Definition lhazregs.h:21
Definition lhazbz2.h:17