Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::mapped_region Class Reference

#include <file_mapping.hpp>

Public Member Functions

 mapped_region (const file_mapping &fm, mode_t m, uint64_t start, size_t size)
 
 mapped_region (const file_mapping &fm, mode_t m)
 
 ~mapped_region ()
 
void flush ()
 
void * get_address () const
 
size_t get_size () const
 

Detailed Description

Definition at line 31 of file file_mapping.hpp.

Constructor & Destructor Documentation

◆ mapped_region() [1/2]

fc::mapped_region::mapped_region ( const file_mapping & fm,
mode_t m,
uint64_t start,
size_t size )

Definition at line 17 of file file_mapping.cpp.

17 :
18 my( *fm.my, m == read_only ? boost::interprocess::read_only : boost::interprocess::read_write ,start, size)
19 {}
@ read_only

◆ mapped_region() [2/2]

fc::mapped_region::mapped_region ( const file_mapping & fm,
mode_t m )

Definition at line 21 of file file_mapping.cpp.

21 :
22 my( *fm.my, m == read_only ? boost::interprocess::read_only : boost::interprocess::read_write)
23 {}

◆ ~mapped_region()

fc::mapped_region::~mapped_region ( )

Definition at line 25 of file file_mapping.cpp.

25{}

Member Function Documentation

◆ flush()

void fc::mapped_region::flush ( )

Definition at line 32 of file file_mapping.cpp.

33 {
34 my->flush();
35 }

◆ get_address()

void * fc::mapped_region::get_address ( ) const

Definition at line 27 of file file_mapping.cpp.

28 {
29 return my->get_address();
30 }
Here is the caller graph for this function:

◆ get_size()

size_t fc::mapped_region::get_size ( ) const

Definition at line 37 of file file_mapping.cpp.

38 {
39 return my->get_size();
40 }
Here is the caller graph for this function:

The documentation for this class was generated from the following files: