Rudiments
memorymap.h
1 // Copyright (c) 2004 David Muse
2 // See the COPYING file for more information.
3 
4 #ifndef RUDIMENTS_MEMORYMAP_H
5 #define RUDIMENTS_MEMORYMAP_H
6 
7 #include <rudiments/private/memorymapincludes.h>
8 
11 class RUDIMENTS_DLLSPEC memorymap {
12  public:
13 
15  memorymap();
16 
19  ~memorymap();
20 
56  bool attach(int32_t fd, off64_t offset, size_t len,
57  int32_t protection, int32_t flags);
58 
62  bool detach();
63 
66  void *getData();
67 
70  size_t getLength();
71 
85  bool sync(bool immediate, bool invalidate);
86 
101  bool sync(off64_t offset, size_t len,
102  bool immediate, bool invalidate);
103 
104 
107  static bool supported();
108 
109  #include <rudiments/private/memorymap.h>
110 };
111 
112 #endif
Definition: memorymap.h:11