BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Variables
a
c
d
e
g
h
l
n
o
t
w
Typedefs
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Typedefs
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
v
Enumerations
Enumerator
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
w
Related Functions
a
b
c
d
e
f
g
h
m
n
o
p
s
t
u
v
w
y
Files
File List
File Members
All
_
a
b
c
d
e
f
g
i
l
m
n
p
r
s
t
u
v
w
Functions
Variables
Typedefs
Macros
_
a
b
c
d
e
f
g
i
l
m
n
p
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
libraries
fc
src
interprocess
file_mapping.cpp
Go to the documentation of this file.
1
#include <
fc/interprocess/file_mapping.hpp
>
2
#include <boost/interprocess/file_mapping.hpp>
3
#include <boost/interprocess/mapped_region.hpp>
4
#include <
fc/fwd_impl.hpp
>
5
6
namespace
fc
{
7
8
9
file_mapping::file_mapping
(
const
char
* file,
mode_t
m ) :
10
my(file, m ==
read_only
? boost::interprocess::
read_only
: boost::interprocess::
read_write
)
11
{}
12
13
file_mapping::~file_mapping
() {}
14
15
16
17
mapped_region::mapped_region
(
const
file_mapping
& fm,
mode_t
m, uint64_t start,
size_t
size ) :
18
my( *fm.my, m ==
read_only
? boost::interprocess::
read_only
: boost::interprocess::
read_write
,start, size)
19
{}
20
21
mapped_region::mapped_region
(
const
file_mapping
& fm,
mode_t
m ) :
22
my( *fm.my, m ==
read_only
? boost::interprocess::
read_only
: boost::interprocess::
read_write
)
23
{}
24
25
mapped_region::~mapped_region
(){}
26
27
void
*
mapped_region::get_address
()
const
28
{
29
return
my->get_address();
30
}
31
32
void
mapped_region::flush
()
33
{
34
my->flush();
35
}
36
37
size_t
mapped_region::get_size
()
const
38
{
39
return
my->get_size();
40
}
41
}
fc::read_write
@ read_write
Definition:
file_mapping.hpp:16
fc
Definition:
api.hpp:15
file_mapping.hpp
fc::file_mapping::~file_mapping
~file_mapping()
Definition:
file_mapping.cpp:13
fc::read_only
@ read_only
Definition:
file_mapping.hpp:14
fc::file_mapping::file_mapping
file_mapping(const char *file, mode_t)
Definition:
file_mapping.cpp:9
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::mode_t
mode_t
Definition:
file_mapping.hpp:13
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::get_size
size_t get_size() const
Definition:
file_mapping.cpp:37
fc::file_mapping
Definition:
file_mapping.hpp:19
fc::mapped_region::get_address
void * get_address() const
Definition:
file_mapping.cpp:27
fwd_impl.hpp
Generated on Fri Dec 15 2023 06:12:43 for BitShares-Core by
1.8.17