A struct that has been mapped from a file.
More...
#include <mmap_struct.hpp>
template<typename
T>
class fc::mmap_struct< T >
- Note
- T must be POD
Definition at line 33 of file mmap_struct.hpp.
◆ mmap_struct()
◆ open()
Create the file if it does not exist or is of the wrong size if create is true, then maps the file to memory.
- Exceptions
-
an | exception if the file does not exist or is the wrong size and create is false |
Definition at line 43 of file mmap_struct.hpp.
44 {
47 }
void open(const fc::path &file, size_t s, bool create)
std::unique_ptr< fc::mapped_region > _mapped_region
#define T(meth, val, expected)
◆ operator*() [1/2]
◆ operator*() [2/2]
◆ operator->() [1/2]
◆ operator->() [2/2]
The documentation for this class was generated from the following file: