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
15 memorymap();
16
19 ~memorymap();
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
memorymap
Definition: memorymap.h:11
memorymap::attach
bool attach(int32_t fd, off64_t offset, size_t size, int32_t protection, int32_t flags)
memorymap::sync
bool sync(off64_t offset, size_t size, bool immediate, bool invalidate)
memorymap::~memorymap
~memorymap()
memorymap::supported
static bool supported()
memorymap::sync
bool sync(bool immediate, bool invalidate)
memorymap::detach
bool detach()
memorymap::memorymap
memorymap()
memorymap::getSize
size_t getSize()
memorymap::getData
void * getData()