20 #ifndef AAMPSHAREDMEMORYSYSTEM_H
21 #define AAMPSHAREDMEMORYSYSTEM_H
39 #ifdef AAMP_SHMEM_USE_SIZE_AND_INSTANCE
62 virtual bool encode(
const uint8_t *dataIn, uint32_t dataInSz, std::vector<uint8_t>& dataOut);
70 virtual bool decode(
const uint8_t* dataIn, uint32_t dataInSz, uint8_t *dataOut, uint32_t dataOutSz);
72 const std::string AAMP_SHARED_MEMORY_NAME{
"/aamp_drm"};
73 const int AAMP_SHARED_MEMORY_CREATE_OFLAGS{O_RDWR | O_CREAT};
74 const int AAMP_SHARED_MEMORY_READ_OFLAGS{O_RDONLY};
75 const mode_t AAMP_SHARED_MEMORY_MODE{ S_IRWXU | S_IRWXG | S_IRWXO };