Wire Sysio
Wire Sysion 1.0.0
Loading...
Searching...
No Matches
file_mapping.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <
fc/fwd.hpp
>
3
#include <
fc/utility.hpp
>
4
5
namespace
boost
{
6
namespace
interprocess {
7
class
file_mapping;
8
class
mapped_region;
9
}
10
}
11
namespace
fc
{
12
enum
mode_t
{
13
read_only
,
14
write_only
,
15
read_write
16
};
17
18
class
file_mapping
{
19
public
:
20
file_mapping
(
const
char
* file,
mode_t
);
21
~file_mapping
();
22
private
:
23
friend
class
mapped_region
;
24
#ifdef _WIN64
25
fc::fwd<boost::interprocess::file_mapping,0x38>
my;
26
#else
27
fc::fwd<boost::interprocess::file_mapping,0x24>
my;
28
#endif
29
};
30
31
class
mapped_region
{
32
public
:
33
mapped_region
(
const
file_mapping
& fm,
mode_t
m,
uint64_t
start,
size_t
size );
34
mapped_region
(
const
file_mapping
& fm,
mode_t
m );
35
~mapped_region
();
36
void
flush
();
37
void
*
get_address
()
const
;
38
size_t
get_size
()
const
;
39
private
:
40
fc::fwd<boost::interprocess::mapped_region,40>
my;
41
};
42
}
fc::file_mapping
Definition
file_mapping.hpp:18
fc::file_mapping::~file_mapping
~file_mapping()
Definition
file_mapping.cpp:13
fc::file_mapping::file_mapping
file_mapping(const char *file, mode_t)
Definition
file_mapping.cpp:9
fc::fwd
Used to forward declare value types.
Definition
fwd.hpp:11
fc::mapped_region
Definition
file_mapping.hpp:31
fc::mapped_region::flush
void flush()
Definition
file_mapping.cpp:32
fc::mapped_region::~mapped_region
~mapped_region()
Definition
file_mapping.cpp:25
fc::mapped_region::mapped_region
mapped_region(const file_mapping &fm, mode_t m, uint64_t start, size_t size)
Definition
file_mapping.cpp:17
fc::mapped_region::get_size
size_t get_size() const
Definition
file_mapping.cpp:37
fc::mapped_region::get_address
void * get_address() const
Definition
file_mapping.cpp:27
fwd.hpp
boost
Definition
controller.hpp:19
fc
namespace sysio::chain
Definition
authority.cpp:3
fc::mode_t
mode_t
Definition
file_mapping.hpp:12
fc::write_only
@ write_only
Definition
file_mapping.hpp:14
fc::read_write
@ read_write
Definition
file_mapping.hpp:15
fc::read_only
@ read_only
Definition
file_mapping.hpp:13
uint64_t
unsigned __int64 uint64_t
Definition
stdint.h:136
utility.hpp
libraries
fc
include
fc
interprocess
file_mapping.hpp
Generated by
1.12.0