Sese Framework  3.0.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::system::SharedMemory::Impl Class Reference

Public Types

using Ptr = std::unique_ptr<Impl>
 
using Ptr = std::unique_ptr<Impl>
 

Public Member Functions

 Impl (int32_t id, void *buffer, bool isOwner)
 
 ~Impl () noexcept
 
void * getBuffer () const noexcept
 
 Impl (HANDLE hMapFile, void *buffer, bool isOwner)
 
 ~Impl () noexcept
 
void * getBuffer () const noexcept
 

Static Public Member Functions

static key_t name2key (const char *name) noexcept
 
static Ptr create (const char *name, size_t size) noexcept
 
static Ptr use (const char *name) noexcept
 
static Ptr create (const char *name, size_t size) noexcept
 
static Ptr use (const char *name) noexcept
 

Public Attributes

int32_t id = -1
 
void * buffer = nullptr
 
bool isOwner = false
 
HANDLE hMapFile = nullptr
 

Member Typedef Documentation

◆ Ptr [1/2]

using sese::system::SharedMemory::Impl::Ptr = std::unique_ptr<Impl>

◆ Ptr [2/2]

using sese::system::SharedMemory::Impl::Ptr = std::unique_ptr<Impl>

Constructor & Destructor Documentation

◆ Impl() [1/2]

sese::system::SharedMemory::Impl::Impl ( int32_t id,
void * buffer,
bool isOwner )
inline

◆ ~Impl() [1/2]

sese::system::SharedMemory::Impl::~Impl ( )
inlinenoexcept

◆ Impl() [2/2]

sese::system::SharedMemory::Impl::Impl ( HANDLE hMapFile,
void * buffer,
bool isOwner )
inline

◆ ~Impl() [2/2]

Member Function Documentation

◆ create() [1/2]

static Ptr sese::system::SharedMemory::Impl::create ( const char * name,
size_t size )
inlinestaticnoexcept

◆ create() [2/2]

static Ptr sese::system::SharedMemory::Impl::create ( const char * name,
size_t size )
inlinestaticnoexcept

◆ getBuffer() [1/2]

void * sese::system::SharedMemory::Impl::getBuffer ( ) const
inlinenodiscardnoexcept

◆ getBuffer() [2/2]

void * sese::system::SharedMemory::Impl::getBuffer ( ) const
inlinenoexcept

◆ name2key()

static key_t sese::system::SharedMemory::Impl::name2key ( const char * name)
inlinestaticnoexcept

◆ use() [1/2]

static Ptr sese::system::SharedMemory::Impl::use ( const char * name)
inlinestaticnoexcept

◆ use() [2/2]

static Ptr sese::system::SharedMemory::Impl::use ( const char * name)
inlinestaticnoexcept

Member Data Documentation

◆ buffer

◆ hMapFile

HANDLE sese::system::SharedMemory::Impl::hMapFile = nullptr

◆ id

int32_t sese::system::SharedMemory::Impl::id = -1

◆ isOwner

bool sese::system::SharedMemory::Impl::isOwner = false

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