Swarm-NG
1.1
|
Define class memory map with header. More...
#include <memorymap.hpp>
Public Member Functions | |
mmapped_file_with_header (const std::string &filename="", const std::string &type="", int mode=ro, bool validate=true) | |
Constructor. | |
void | open (const std::string &filename, const std::string &type, int mode=ro, bool validate=true) |
Open the file. | |
size_t | size () const |
override MemoryMap::size() to return the length of the data without the header | |
char * | data () const |
accessors | |
Public Member Functions inherited from peyton::system::MemoryMap | |
void | open (int fd, size_t length_, size_t offset, int mode, int mapstyle, bool closefd=false) |
open file | |
MemoryMap () | |
Constructors. | |
void | open (const std::string &filename, size_t length=0, size_t offset=0, int mode=ro, int map=shared) |
open file with mapping type | |
~MemoryMap () | |
Destructor. | |
operator void * () | |
Define operator. | |
Additional Inherited Members | |
Public Types inherited from peyton::system::MemoryMap | |
enum | |
Enumerate IO types. | |
enum | |
Enumerate mapping types. | |
Static Public Member Functions inherited from peyton::system::MemoryMap | |
static void | pagesizealign (std::ostream &out) |
page size alignment | |
Define class memory map with header.
Definition at line 155 of file memorymap.hpp.