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

#include <Mmap.h>

Public Member Functions

 CMmap (void *addr, std::size_t length, int prot, int flags, int fildes, off_t offset)
 
 ~CMmap ()
 
voidData () const
 
std::size_t Size () const
 

Detailed Description

Wrapper for mapped memory that automatically calls munmap on destruction

Constructor & Destructor Documentation

◆ CMmap()

CMmap::CMmap ( void * addr,
std::size_t length,
int prot,
int flags,
int fildes,
off_t offset )

See mmap(3p) for parameter description

◆ ~CMmap()

CMmap::~CMmap ( )

Member Function Documentation

◆ Data()

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

◆ Size()

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

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