proxygen
|
#include <MemoryMapping.h>
Public Member Functions | |
Options () | |
Options & | setPageSize (off_t v) |
Options & | setShared (bool v) |
Options & | setPrefault (bool v) |
Options & | setReadable (bool v) |
Options & | setWritable (bool v) |
Options & | setGrow (bool v) |
Public Attributes | |
off_t | pageSize = 0 |
bool | shared = true |
bool | prefault = false |
bool | readable = true |
bool | writable = false |
bool | grow = false |
void * | address = nullptr |
Map a portion of the file indicated by filename in memory, causing a CHECK failure on error.
By default, map the whole file. length=-1: map from offset to EOF. Unlike the mmap() system call, offset and length don't need to be page-aligned. length is clipped to the end of the file if it's too large.
The mapping will be destroyed (and the memory pointed-to by data() will likely become inaccessible) when the MemoryMapping object is destroyed.
Definition at line 54 of file MemoryMapping.h.
|
inline |
Definition at line 55 of file MemoryMapping.h.
|
inline |
Definition at line 78 of file MemoryMapping.h.
References v.
Referenced by folly::MemoryMapping::writable().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 74 of file MemoryMapping.h.
References v, and folly::MemoryMapping::writable().
Referenced by folly::MemoryMapping::writable().
void* folly::MemoryMapping::Options::address = nullptr |
Definition at line 114 of file MemoryMapping.h.
Referenced by folly::MemoryMapping::init().
bool folly::MemoryMapping::Options::grow = false |
Definition at line 110 of file MemoryMapping.h.
Referenced by folly::MemoryMapping::init().
off_t folly::MemoryMapping::Options::pageSize = 0 |
Definition at line 86 of file MemoryMapping.h.
Referenced by folly::MemoryMapping::advise(), folly::MemoryMapping::init(), folly::MemoryMapping::mlock(), folly::MemoryMapping::munlock(), and folly::MemoryMapping::~MemoryMapping().
bool folly::MemoryMapping::Options::prefault = false |
Definition at line 97 of file MemoryMapping.h.
Referenced by folly::MemoryMapping::init().
bool folly::MemoryMapping::Options::readable = true |
Definition at line 102 of file MemoryMapping.h.
Referenced by folly::MemoryMapping::init().
bool folly::MemoryMapping::Options::shared = true |
Definition at line 93 of file MemoryMapping.h.
Referenced by folly::MemoryMapping::init().
bool folly::MemoryMapping::Options::writable = false |
Definition at line 105 of file MemoryMapping.h.
Referenced by folly::MemoryMapping::asWritableRange(), folly::MemoryMapping::init(), and folly::MemoryMapping::writableRange().