Files
FEX-Emu--FEX/include/FEXCore/Memory/SharedMem.h
T
2020-03-06 07:48:39 +02:00

28 lines
569 B
C++

#pragma once
#include <stddef.h>
#include <stdint.h>
namespace FEXCore::SHM {
struct SHMObject {
void *Ptr;
uint8_t InternalState[0];
};
/**
* @brief Allocate a shared memory region that will be the base of our VM's memory
*
* @param Size The size of the SHM region
*
* @return An object representing our internal SHM state
*/
SHMObject *AllocateSHMRegion(size_t Size);
/**
* @brief Destroy the SHM region
*
* @param SHM The region previously created with AllocateSHMRegion
*/
void DestroyRegion(SHMObject *SHM);
}