binlex
raw.h
1 #include <stdio.h>
2 #include <stdlib.h>
3 
4 #ifndef RAW_H
5 #define RAW_H
6 
7 #define RAW_MAX_SECTIONS 128
8 
9 namespace binlex{
10  class Raw{
11  private:
12  struct Section {
13  void *data;
14  int size;
15  uint offset;
16  };
17  int GetFileSize(FILE *fd);
18  public:
19  struct Section sections[RAW_MAX_SECTIONS];
20  Raw();
21  bool ReadFile(char *file_path, int section_index);
22  ~Raw();
23  };
24 }
25 
26 #endif
binlex::Raw
Definition: raw.h:10
binlex
the binlex namespace