ADTF
adtf_memory_buffer< T, typename std::enable_if< std::is_const< T >::value >::type >
Inheritance diagram for adtf_memory_buffer< T, typename std::enable_if< std::is_const< T >::value >::type >:
[legend]

Public Member Functions

 adtf_memory_buffer (const T *pPtr, size_t szSize)
 
tResult Set (const void *, size_t) override
 Sets the Raw pointer memory. More...
 
size_t GetSize () const override
 Returns the size in bytes of the memory. More...
 
const void * Get () const override
 Returns the raw memory pointer. More...
 

Private Attributes

const T * m_pPtr
 
size_t m_szSize
 

Detailed Description

template<typename T>
class adtf::base::ant::adtf_memory_buffer< T, typename std::enable_if< std::is_const< T >::value >::type >

Definition at line 245 of file rawmemory_base.h.

Member Function Documentation

◆ Get()

const void* Get ( ) const
inlineoverridevirtual

Returns the raw memory pointer.

Returns
the pointer to the raw memory.

Implements IRawMemory.

Definition at line 269 of file rawmemory_base.h.

◆ GetSize()

size_t GetSize ( ) const
inlineoverridevirtual

Returns the size in bytes of the memory.

Returns
The size in bytes.

Implements IRawMemory.

Definition at line 264 of file rawmemory_base.h.

◆ Set()

tResult 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 IRawMemory.

Definition at line 259 of file rawmemory_base.h.

References RETURN_ERROR.