#include <mapped_file.hpp>
Definition at line 48 of file mapped_file.hpp.
Public Member Functions | |
void * | get_pointer () |
unsigned int | get_size () |
mapped_file (const gsgl::string &fname, unsigned int io_open_mode=io::FILE_OPEN_READ, unsigned int create_size=0) | |
~mapped_file () | |
Private Attributes | |
void * | file_handle |
void * | map_handle |
void * | map_pointer |
unsigned int | map_size |
mapped_file | ( | const gsgl::string & | fname, | |
unsigned int | io_open_mode = io::FILE_OPEN_READ , |
|||
unsigned int | create_size = 0 | |||
) |
Definition at line 67 of file mapped_file.cpp.
References file::exists(), mapped_file::file_handle, gsgl::io::FILE_OPEN_WRITE, string::format(), file::get_full_path(), mapped_file::map_handle, mapped_file::map_pointer, mapped_file::map_size, and string::w_string().
~mapped_file | ( | ) |
Definition at line 137 of file mapped_file.cpp.
References mapped_file::file_handle, mapped_file::map_handle, and mapped_file::map_pointer.
void * get_pointer | ( | ) |
unsigned int get_size | ( | ) |
void* file_handle [private] |
Definition at line 50 of file mapped_file.hpp.
Referenced by mapped_file::mapped_file(), and mapped_file::~mapped_file().
void * map_handle [private] |
Definition at line 50 of file mapped_file.hpp.
Referenced by mapped_file::mapped_file(), and mapped_file::~mapped_file().
void* map_pointer [private] |
Definition at line 51 of file mapped_file.hpp.
Referenced by mapped_file::get_pointer(), mapped_file::mapped_file(), and mapped_file::~mapped_file().
unsigned int map_size [private] |
Definition at line 53 of file mapped_file.hpp.
Referenced by mapped_file::get_size(), and mapped_file::mapped_file().