Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
KODI::UTILS::POSIX::CSharedMemory Class Reference

#include <SharedMemory.h>

Public Member Functions

 CSharedMemory (std::size_t size)
 
std::size_t Size () const
 
voidData () const
 
int Fd () const
 

Detailed Description

Get a chunk of shared memory of specified size

The shared memory is automatically allocated, truncated to the correct size and memory-mapped.

Constructor & Destructor Documentation

◆ CSharedMemory()

CSharedMemory::CSharedMemory ( std::size_t size)
explicit

Member Function Documentation

◆ Data()

void * KODI::UTILS::POSIX::CSharedMemory::Data ( ) const
inline

◆ Fd()

int KODI::UTILS::POSIX::CSharedMemory::Fd ( ) const
inline

◆ Size()

std::size_t KODI::UTILS::POSIX::CSharedMemory::Size ( ) const
inline

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