file.h
Go to the documentation of this file.
1 #ifndef IZ_FILE_H
2 #define IZ_FILE_H 1
3 
4 #include <cstddef>
5 
6 namespace IZ
7 {
8  class InputFile
9  {
10  public:
11  explicit InputFile(const char* filename);
12 
13  ~InputFile();
14 
15  bool isReadable() const;
16 
17  const unsigned char* data() const;
18 
19  size_t dataSize() const;
20 
21  private:
22  class Private;
23 
24  Private* const d;
25  };
26 
27  class OutputFile
28  {
29  public:
30  explicit OutputFile(const char* filename);
31 
32  ~OutputFile();
33 
34  bool isWritable() const;
35 
36  unsigned char* prepareData(size_t maxSize);
37 
38  void commitData(unsigned char* data, size_t size);
39 
40  private:
41  class Private;
42 
43  Private* const d;
44  };
45 }
46 
47 #endif
Definition: bitcoder.h:6
Private *const d
Definition: file.h:22
InputFile(const char *filename)
Private *const d
Definition: file.h:41
const unsigned char * data() const
bool isReadable() const
size_t dataSize() const


imagezero
Author(s):
autogenerated on Wed Jun 5 2019 22:02:47