ADTF
|
The IRawMemory interface provides methods for getting and setting memory values through abstract interfaces. More...
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... | |
The IRawMemory interface provides methods for getting and setting memory values through abstract interfaces.
Definition at line 22 of file rawmemory_base.h.
|
pure virtual |
Returns the raw memory pointer.
Implemented in cRawMemoryRedirect, 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, typename std::enable_if< std::is_const< T >::value >::type >, adtf_memory_buffer< T, Enable >, hash_value_map< STORAGE, INTERFACE >::cHashedValueSetter, and adtf_memory< T, TSIZE >.
Referenced by hash_value_map< STORAGE, INTERFACE >::FromRaw().
|
pure virtual |
Returns the size in bytes of the memory.
Implemented in cRawMemoryRedirect, 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, typename std::enable_if< std::is_const< T >::value >::type >, adtf_memory_buffer< T, Enable >, hash_value_map< STORAGE, INTERFACE >::cHashedValueSetter, and adtf_memory< T, TSIZE >.
Referenced by hash_value_map< STORAGE, INTERFACE >::FromRaw(), and property_value< T >::Set().
|
pure virtual |
Sets the Raw pointer memory.
Copy the content.
[in] | pValue | raw memory pointer. |
[in] | szSize | size of memory to copy in bytes. |
ERR_MEMORY | The Memory does not fit. |
ERR_POINTER | Internal implementation error. |
Implemented in cRawMemoryRedirect, adtf_memory< T, TSIZE, Enable >, adtf_memory_trivial_type< T, Enable >, adtf_memory_buffer< T, Enable >, adtf_memory< T, TSIZE >, hash_value_map< STORAGE, INTERFACE >::cHashedValueSetter, adtf_memory_trivial_type< T, typename std::enable_if< std::is_const< T >::value >::type >, and adtf_memory_buffer< T, typename std::enable_if< std::is_const< T >::value >::type >.