RDK Documentation (Open Sourced RDK Components)
AampIonMemorySystem Class Reference

Handles ION memory storage to store data. More...

#include <AampIonMemorySystem.h>

Inheritance diagram for AampIonMemorySystem:
Inheritance graph
Collaboration diagram for AampIonMemorySystem:
Collaboration graph

Data Structures

class  AampIonMemoryContext
 

Public Member Functions

 AampIonMemorySystem (AampLogManager *logObj)
 AampIonMemorySystem constructor.
 
virtual ~AampIonMemorySystem ()
 AampIonMemorySystem distructor.
 
virtual bool encode (const uint8_t *dataIn, uint32_t dataInSz, std::vector< uint8_t > &dataOut) override
 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) override
 Decode from getting back. More...
 
virtual void terminateEarly () override
 Call this if there's an failure external to the MS and it needs to tidy up unexpectedly.
 
- Public Member Functions inherited from AAMPMemorySystem
 AAMPMemorySystem (AampLogManager *logObj)
 
 AAMPMemorySystem (const AAMPMemorySystem &)=delete
 
AAMPMemorySystemoperator= (const AAMPMemorySystem &)=delete
 

Data Fields

AampIonMemoryContext context_
 
- Data Fields inherited from AAMPMemorySystem
AampLogManagermLogObj
 

yes

Handles ION memory storage to store data.

Definition at line 49 of file AampIonMemorySystem.h.

Member Function Documentation

◆ encode()

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

Encode a block of data to send over the divide.

Parameters
dataInpointer to the data to encode
dataInSzthe size to encode
outdataOut the data to send
Returns
true if data is encoded

Implements AAMPMemorySystem.

Definition at line 126 of file AampIonMemorySystem.cpp.

◆ decode()

AampIonMemorySystem::decode ( const uint8_t *  dataIn,
uint32_t  dataInSz,
uint8_t *  dataOut,
uint32_t  dataOutSz 
)
overridevirtual

Decode from getting back.

Parameters
dataInpointer to the data to decode
sizethe size to decode
outdataOut the data to recover
intdataOutSz the size of the space for data to recover

Implements AAMPMemorySystem.

Definition at line 180 of file AampIonMemorySystem.cpp.


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