Named shared memory region.
More...
|
void * | get () const |
|
void * | ptr () const |
|
Named shared memory region.
Definition at line 19 of file shmem.hpp.
◆ create()
SharedMemory winapi::SharedMemory::create |
( |
const std::string & |
name, |
|
|
std::size_t |
nb |
|
) |
| |
|
static |
Creates a shared memory region.
- Parameters
-
name | UTF-8 string. |
nb | Number of bytes. |
Definition at line 40 of file shmem.cpp.
◆ open()
SharedMemory winapi::SharedMemory::open |
( |
const std::string & |
name | ) |
|
|
static |
Opens a shared memory region.
- Parameters
-
Definition at line 59 of file shmem.cpp.
◆ get()
void* winapi::SharedMemory::get |
( |
| ) |
const |
|
inline |
Get pointer to the data.
Definition at line 34 of file shmem.hpp.
◆ ptr()
void* winapi::SharedMemory::ptr |
( |
| ) |
const |
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 36 of file shmem.hpp.
The documentation for this class was generated from the following files: