CernVM-FS
2.12.0
|
#include <mmap_file.h>
Public Member Functions | |
MemoryMappedFile (const std::string &file_path) | |
~MemoryMappedFile () | |
bool | Map () |
void | Unmap () |
unsigned char * | buffer () const |
size_t | size () const |
const std::string & | file_path () const |
bool | IsMapped () const |
Private Attributes | |
const std::string | file_path_ |
int | file_descriptor_ |
unsigned char * | mapped_file_ |
size_t | mapped_size_ |
bool | mapped_ |
Additional Inherited Members | |
Private Member Functions inherited from SingleCopy | |
SingleCopy () | |
This file is part of the CernVM File System. Wraps the functionality of mmap() to create a read-only memory mapped file.
Note: You need to call Map() to actually map the provided file path to memory
Definition at line 24 of file mmap_file.h.
|
explicit |
Definition at line 32 of file mmap_file.cc.
MemoryMappedFile::~MemoryMappedFile | ( | ) |
|
inline |
Definition at line 32 of file mmap_file.h.
Referenced by FileBackedBuffer::Data().
|
inline |
Definition at line 34 of file mmap_file.h.
|
inline |
Definition at line 36 of file mmap_file.h.
Referenced by ~MemoryMappedFile().
bool MemoryMappedFile::Map | ( | ) |
Definition at line 45 of file mmap_file.cc.
Referenced by FileBackedBuffer::Commit().
|
inline |
Definition at line 33 of file mmap_file.h.
void MemoryMappedFile::Unmap | ( | ) |
Definition at line 91 of file mmap_file.cc.
Referenced by FileBackedBuffer::~FileBackedBuffer(), and ~MemoryMappedFile().
|
private |
Definition at line 40 of file mmap_file.h.
|
private |
Definition at line 39 of file mmap_file.h.
|
private |
Definition at line 43 of file mmap_file.h.
|
private |
Definition at line 41 of file mmap_file.h.
|
private |
Definition at line 42 of file mmap_file.h.