Lhaz
bz2tar.h
[詳解]
1 /*==========================================================================*/
2 /* Lhaz .tar.bzインタフェース chitora@chitora.jp */
3 /*==========================================================================*/
4 #ifndef _BZ2TAR_H
5 #define _BZ2TAR_H
6 
7 #include <stdio.h>
8 #include <time.h>
9 #include "../tgz/tar.h"
10 #include "bzlib.h"
11 
12 class BZ2TAR : public CTAR {
13 public:
14  BZ2TAR(BZFILE* fp, const char* arcname = NULL);
15  ‾BZ2TAR(void);
16 private:
17  BZFILE* Fp;
18  size_t TarRead(void *buf, size_t size, unsigned long* crc);
19  int TarSeek(fpos_t offset, int origin);
20  size_t TarWrite(const void* buf, size_t size, bool eof);
21 };
22 
23 #endif
BZFILE * Fp
Definition: bz2tar.h:17
int TarSeek(fpos_t offset, int origin)
Definition: bz2tar.cpp:33
size_t TarRead(void *buf, size_t size, unsigned long *crc)
Definition: bz2tar.cpp:25
Definition: bz2tar.h:12
size_t TarWrite(const void *buf, size_t size, bool eof)
Definition: bz2tar.cpp:52
‾BZ2TAR(void)
Definition: bz2tar.cpp:18
Definition: tar.h:13
BZ2TAR(BZFILE *fp, const char *arcname=NULL)
Definition: bz2tar.cpp:10