ADTF
Loading...
Searching...
No Matches
adtf::base::ant::adtf_memory_buffer< T, Enable > Class Template Reference

Template class implementation for the IRawMemory interface. More...

#include <rawmemory_base.h>

Inherits adtf::base::ant::IRawMemory.

Public Member Functions

 adtf_memory_buffer (T *pPtr, size_t szSize)
 
tResult Set (const void *pValue, size_t szSize) override
 
size_t GetSize () const override
 
const void * Get () const override
 

Detailed Description

template<typename T, typename Enable = void>
class adtf::base::ant::adtf_memory_buffer< T, Enable >

Template class implementation for the IRawMemory interface.

Member Function Documentation

◆ Get()

template<typename T, typename Enable = void>
const void * adtf::base::ant::adtf_memory_buffer< T, Enable >::Get ( ) const
inlineoverridevirtual

Returns the raw memory pointer.

Returns
the pointer to the raw memory.

Implements adtf::base::ant::IRawMemory.

◆ GetSize()

template<typename T, typename Enable = void>
size_t adtf::base::ant::adtf_memory_buffer< T, Enable >::GetSize ( ) const
inlineoverridevirtual

Returns the size in bytes of the memory.

Returns
The size in bytes.

Implements adtf::base::ant::IRawMemory.

◆ Set()

template<typename T, typename Enable = void>
tResult adtf::base::ant::adtf_memory_buffer< T, Enable >::Set ( const void * pValue,
size_t szSize )
inlineoverridevirtual

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.

Implements adtf::base::ant::IRawMemory.


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