ADTF
|
Concept template class for non trivial penguin::adtf_memory types of type T
to specialize the usage of adtf_memory<T>
(see Supported types for adtf_memory<T> for writing and reading Samples).
More...
Static Public Member Functions | |
static tResult | Assign (T *pAssignValue, const size_t szStaticSize, const void *pValueToSet, const size_t szSizeToSet) |
Sets (copy) the memory value pValueToSet of size in bytes szSizeToSet to the of container class T in parameter pAssignValue . More... | |
static const void * | GetPtr (const T *pAssignValue) |
Gets the memory pointer to the of container class T in parameter pAssignValue . More... | |
static size_t | GetSize (const T *pAssignValue, const size_t szStaticSize) |
Gets size in bytes of the memory pointer of container class T in parameter pAssignValue . More... | |
Concept template class for non trivial penguin::adtf_memory types of type T
to specialize the usage of adtf_memory<T>
(see Supported types for adtf_memory<T> for writing and reading Samples).
T | Type to specialize adtf_memory_forward for. |
Following methods needs to be implemented:
Example for the adtf_util::cMemoryBlock :
Definition at line 88 of file rawmemory_base.h.
|
inlinestatic |
Sets (copy) the memory value pValueToSet
of size in bytes szSizeToSet
to the of container class T
in parameter pAssignValue
.
Usually this implementation creates a deep copy.
[in] | pAssignValue | pointer to the container class T . Must be a valid constructed object. |
[in] | szStaticSize | implementation details: max size of static pre allocated memory within AssignValue . if set no dynamic allocation possible. |
[in] | pValueToSet | raw pointer to the memory to set |
[in] | szSizeToSet | size in bytes of pValueToSet |
Definition at line 101 of file rawmemory_base.h.
Referenced by adtf_memory< T, TSIZE >::Set(), and adtf_memory< T, TSIZE, Enable >::Set().
|
inlinestatic |
Gets the memory pointer to the of container class T
in parameter pAssignValue
.
[in] | pAssignValue | pointer to the container class T . Must be a valid constructed object. |
Definition at line 119 of file rawmemory_base.h.
Referenced by adtf_memory< T, TSIZE >::Get(), and adtf_memory< T, TSIZE, Enable >::Get().
|
inlinestatic |
Gets size in bytes of the memory pointer of container class T
in parameter pAssignValue
.
[in] | pAssignValue | pointer to the container class T . Must be a valid constructed object. |
[in] | szStaticSize | size of the pointers buffer if container class is a static sized type |
Definition at line 134 of file rawmemory_base.h.
Referenced by adtf_memory< T, TSIZE >::GetSize(), and adtf_memory< T, TSIZE, Enable >::GetSize().