memorymap.h
// Copyright (c) 2004 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_MEMORYMAP_H
#define RUDIMENTS_MEMORYMAP_H
#include <rudiments/private/memorymapincludes.h>
class memorymapprivate;
class RUDIMENTS_DLLSPEC memorymap {
public:
memorymap();
~memorymap();
bool attach(int32_t fd, off64_t offset, size_t len,
int32_t protection, int32_t flags);
bool detach();
bool setProtection(int32_t protection);
bool setProtection(off64_t offset, size_t len,
int32_t protection);
void *getData();
size_t getLength();
bool sync(bool immediate, bool invalidate);
bool sync(off64_t offset, size_t len,
bool immediate, bool invalidate);
bool sequentialAccess(off64_t offset, size_t len);
bool randomAccess(off64_t offset, size_t len);
bool willNeed(off64_t offset, size_t len);
bool wontNeed(off64_t offset, size_t len);
bool normalAccess(off64_t offset, size_t len);
bool lock();
bool lock(off64_t offset, size_t len);
bool unlock();
bool unlock(off64_t offset, size_t len);
bool inMemory();
bool inMemory(off64_t offset, size_t len);
static bool lockAll();
static bool lockAllCurrent();
static bool lockAllFuture();
static bool unlockAll();
#include <rudiments/private/memorymap.h>
};
#endif
memorymap
Definition: memorymap.h:13