ADTF  3.15.1
IRawMemoryabstract

The IRawMemory interface provides methods for getting and setting memory values through abstract interfaces. More...

Inheritance diagram for IRawMemory:
[legend]

Public Member Functions

virtual tResult Set (const void *pValue, size_t szSize)=0
 Sets the Raw pointer memory. More...
 
virtual size_t GetSize () const =0
 Returns the size in bytes of the memory. More...
 
virtual const void * Get () const =0
 Returns the raw memory pointer. More...
 

Detailed Description

The IRawMemory interface provides methods for getting and setting memory values through abstract interfaces.

Definition at line 22 of file rawmemory_base.h.

Member Function Documentation

◆ Get()

◆ GetSize()

◆ Set()

virtual tResult Set ( const void *  pValue,
size_t  szSize 
)
pure virtual

Sets the Raw pointer memory.

Copy the content.

Parameters
[in]pValueraw memory pointer.
[in]szSizesize of memory to copy in bytes.
Returns
Standard Result Code.
Return values
ERR_MEMORYThe Memory does not fit.
ERR_POINTERInternal implementation error.

Implemented in adtf_memory< T, TSIZE, Enable >, adtf_memory_trivial_type< T, typename std::enable_if< std::is_const< T >::value >::type >, adtf_memory_trivial_type< T, Enable >, adtf_memory_buffer< T, Enable >, adtf_memory< T, TSIZE >, hash_value_map< STORAGE, INTERFACE >::cHashedValueSetter, and adtf_memory_buffer< T, typename std::enable_if< std::is_const< T >::value >::type >.