Lhaz
xztar.h
[詳解]
1 /*==========================================================================*/
2 /* Lhaz .tar.xzインタフェース chitora@chitora.jp */
3 /*==========================================================================*/
4 #pragma once
5 
6 #include "../tgz/tar.h"
7 #include "lzma.h"
8 
9 class MYSTR;
10 class MYFILE;
11 
12 class XZTAR : public CTAR {
13 
14 public:
15  // 解凍用コンストラクタ
16  XZTAR(const MYSTR& name);
17  // 圧縮用コンストラクタ
18  XZTAR(const MYSTR& name, int method);
19  ‾XZTAR(void);
20  uint64_t Get_total_in(void) const;
21 
22 private:
23  enum {
24 #if BUFSIZ <= 1024
26 #else
27  IO_BUFFER_SIZE = BUFSIZ
28 #endif
29  };
30  //
31  size_t TarRead(void *buf, size_t size, unsigned long* crc);
32  int TarSeek(fpos_t offset, int origin);
33  size_t TarWrite(const void* buf, size_t size, bool eof);
34  //
35  uint64_t MemLimit;
36  MYFILE* File;
37  lzma_stream Stream;
41  int Method;
42 
43 };
‾XZTAR(void)
Definition: xztar.cpp:56
uint64_t Get_total_in(void) const
Definition: xztar.cpp:167
MYFILE * File
Definition: xztar.h:36
int Method
Definition: xztar.h:41
int TarSeek(fpos_t offset, int origin)
Definition: xztar.cpp:97
XZTAR(const MYSTR &name)
Definition: xztar.cpp:13
lzma_stream Stream
Definition: xztar.h:37
and that you are informed that you can do these things To protect your we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it For if you distribute copies of the whether gratis or for a you must give the recipients all the rights that we gave you You must make sure that receive or can get the source code If you link other code with the you must provide complete object files to the so that they can relink them with the library after making changes to the library and recompiling it And you must show them these terms so they know their rights We protect your rights with a two step method
Definition: copying.txt:35
Definition: tar.h:13
Definition: xztar.h:25
uint8_t InBuf[IO_BUFFER_SIZE]
Definition: xztar.h:38
size_t TarRead(void *buf, size_t size, unsigned long *crc)
Definition: xztar.cpp:64
uint64_t MemLimit
Definition: xztar.h:35
size_t TarWrite(const void *buf, size_t size, bool eof)
Definition: xztar.cpp:116
bool FirstEncode
Definition: xztar.h:40
Definition: xztar.h:12
uint8_t OutBuf[IO_BUFFER_SIZE]
Definition: xztar.h:39