Lhaz
tartar.h
[詳解]
1 #ifndef _TARTAR_H
2 #define _TARTAR_H
3 
4 #include <stdio.h>
5 #include <time.h>
6 #include "tar.h"
7 
8 class TARTAR : public CTAR {
9 
10 public:
11  TARTAR(FILE* fp, const char* arcname = NULL);
12  ‾TARTAR(void);
13  //
14  bool CopyData(FILE* fp);
15 
16 private:
17  FILE* Fp;
18  //
19  int fsetpos(FILE* fp, fpos_t pos, int origin = SEEK_SET);
20  size_t TarRead(void *buf, size_t size, unsigned long* crc);
21  int TarSeek(fpos_t offset, int origin);
22  size_t TarWrite(const void* buf, size_t size, bool eof);
23 
24 };
25 
26 #endif
Definition: tar.h:13
TARTAR(FILE *fp, const char *arcname=NULL)
Definition: tartar.cpp:14
bool CopyData(FILE *fp)
Definition: tartar.cpp:77
int fsetpos(FILE *fp, fpos_t pos, int origin=SEEK_SET)
Definition: tartar.cpp:28
int TarSeek(fpos_t offset, int origin)
Definition: tartar.cpp:61
Definition: tartar.h:8
size_t TarWrite(const void *buf, size_t size, bool eof)
Definition: tartar.cpp:69
FILE * Fp
Definition: tartar.h:17
size_t TarRead(void *buf, size_t size, unsigned long *crc)
Definition: tartar.cpp:53
‾TARTAR(void)
Definition: tartar.cpp:21