RDK Documentation (Open Sourced RDK Components)
AampSharedMemorySystem Class Reference

Handles the shared Memory operations. More...

#include <AampSharedMemorySystem.h>

Inheritance diagram for AampSharedMemorySystem:
Inheritance graph
Collaboration diagram for AampSharedMemorySystem:
Collaboration graph

Public Member Functions

 AampSharedMemorySystem (AampLogManager *logObj)
 AampSharedMemorySystem constructor.
 
virtual ~AampSharedMemorySystem ()
 AampSharedMemorySystem Destructor.
 
virtual bool encode (const uint8_t *dataIn, uint32_t dataInSz, std::vector< uint8_t > &dataOut)
 Encode a block of data to send over the divide. More...
 
virtual bool decode (const uint8_t *dataIn, uint32_t dataInSz, uint8_t *dataOut, uint32_t dataOutSz)
 Decode from getting back. More...
 
- Public Member Functions inherited from AAMPMemorySystem
virtual void terminateEarly ()
 Call this if there's an failure external to the MS and it needs to tidy up unexpectedly.
 
 AAMPMemorySystem (AampLogManager *logObj)
 
 AAMPMemorySystem (const AAMPMemorySystem &)=delete
 
AAMPMemorySystemoperator= (const AAMPMemorySystem &)=delete
 

Private Attributes

const std::string AAMP_SHARED_MEMORY_NAME {"/aamp_drm"}
 
const int AAMP_SHARED_MEMORY_CREATE_OFLAGS {O_RDWR | O_CREAT}
 
const int AAMP_SHARED_MEMORY_READ_OFLAGS {O_RDONLY}
 
const mode_t AAMP_SHARED_MEMORY_MODE { S_IRWXU | S_IRWXG | S_IRWXO }
 

Additional Inherited Members

- Data Fields inherited from AAMPMemorySystem
AampLogManagermLogObj
 

yes

Handles the shared Memory operations.

Definition at line 50 of file AampSharedMemorySystem.h.

Member Function Documentation

◆ encode()

AampSharedMemorySystem::encode ( const uint8_t *  dataIn,
uint32_t  dataInSz,
std::vector< uint8_t > &  dataOut 
)
virtual

Encode a block of data to send over the divide.

Parameters
dataInpointer to the data to encode
dataInSzthe size to encode
[out]dataOutthe data to send
Returns
true if data is encoded

Implements AAMPMemorySystem.

Definition at line 49 of file AampSharedMemorySystem.cpp.

◆ decode()

AampSharedMemorySystem::decode ( const uint8_t *  dataIn,
uint32_t  dataInSz,
uint8_t *  dataOut,
uint32_t  dataOutSz 
)
virtual

Decode from getting back.

Parameters
dataInpointer to the data to decode
dataInSzthe size to decode
[out]dataOutthe data to recover
[in]dataOutSzthe size of the space for data to recover

Implements AAMPMemorySystem.

Definition at line 102 of file AampSharedMemorySystem.cpp.


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