#include <rawmemory_base.h>
Inherits adtf::base::ant::IRawMemory, and adtf::base::ant::adtf_memory_forward< T >.
|
|
| adtf_memory (T *pAssignValue) |
| | explicit CTOR to create a IRawMemory interface rvalue
|
| |
|
virtual | ~adtf_memory () |
| | DTOR.
|
| |
| tResult | Set (const void *pValue, size_t szSize) |
| |
| const void * | Get () const |
| |
| size_t | GetSize () const |
| |
|
| static tResult | Assign (T *pAssignValue, const size_t szStaticSize, const void *pValueToSet, const size_t szSizeToSet) |
| |
| static const void * | GetPtr (const T *pAssignValue) |
| |
| static size_t | GetSize (const T *pAssignValue, const size_t szStaticSize) |
| |
template<typename T, size_t TSIZE = 0>
class adtf::base::ant::adtf_memory< T, TSIZE >
Legacy template class for adtf_memory usage. See adtf::base::penguin::adtf_memory.
- Template Parameters
-
| T | Type of the memory implementation which can provide raw memory. |
| size_t | Size of memory if the type T is a fixed size type. Set to 0 if T is resizable and a non standard type. |
◆ Get()
template<typename T, size_t TSIZE = 0>
◆ GetSize()
template<typename T, size_t TSIZE = 0>
◆ Set()
template<typename T, size_t TSIZE = 0>
Sets the Raw pointer memory. Copy the content.
- Parameters
-
| [in] | pValue | raw memory pointer. |
| [in] | szSize | size of memory to copy in bytes. |
- Returns
- Standard Result Code.
- Return values
-
| ERR_MEMORY | The Memory does not fit. |
| ERR_POINTER | Internal implementation error. |
Implements adtf::base::ant::IRawMemory.
The documentation for this class was generated from the following file: