Lhaz
tgztar.h
[詳解]
1 #ifndef _TGZTAR_H
2 #define _TGZTAR_H
3 
4 #include <stdio.h>
5 #include <time.h>
6 #include "tar.h"
7 #include "../zlib/zlib.h"
8 
9 class TGZTAR : public CTAR {
10 public:
11  TGZTAR(gzFile fp, const char* arcname = NULL);
12  ‾TGZTAR(void);
13 private:
14  gzFile Fp;
15  size_t TarRead(void *buf, size_t size, unsigned long* crc);
16  int TarSeek(fpos_t offset, int origin);
17  size_t TarWrite(const void* buf, size_t size, bool eof);
18 };
19 
20 #endif
Definition: tgztar.h:9
‾TGZTAR(void)
Definition: tgztar.cpp:22
gzFile Fp
Definition: tgztar.h:14
Definition: tar.h:13
int TarSeek(fpos_t offset, int origin)
Definition: tgztar.cpp:39
TGZTAR(gzFile fp, const char *arcname=NULL)
Definition: tgztar.cpp:14
size_t TarRead(void *buf, size_t size, unsigned long *crc)
Definition: tgztar.cpp:29
size_t TarWrite(const void *buf, size_t size, bool eof)
Definition: tgztar.cpp:47