Rudiments
memorymap.h
1 // Copyright (c) 1999-2018 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 
16 
20 
56  bool attach(int32_t fd, off64_t offset, size_t size,
57  int32_t protection, int32_t flags);
58 
62  bool detach();
63 
66  void *getData();
67 
70  size_t getSize();
71 
85  bool sync(bool immediate, bool invalidate);
86 
101  bool sync(off64_t offset, size_t size,
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
bool attach(int32_t fd, off64_t offset, size_t size, int32_t protection, int32_t flags)
bool sync(off64_t offset, size_t size, bool immediate, bool invalidate)
static bool supported()
bool sync(bool immediate, bool invalidate)
bool detach()
size_t getSize()
void * getData()