An implementation of the IDataObjBase interface. This class allocates and owns memory on the heap.
More...
#include <DataObjectImplementations.h>
An implementation of the IDataObjBase interface. This class allocates and owns memory on the heap.
◆ DataObjectOnHeap()
imgdoc2::DataObjectOnHeap::DataObjectOnHeap |
( |
size_t |
size | ) |
|
|
inlineexplicit |
Constructor which allocates the specified amount of data on the heap.
- Parameters
-
size | The size of the buffer to allocate (in bytes). |
◆ GetData()
void imgdoc2::DataObjectOnHeap::GetData |
( |
const void ** |
p, |
|
|
size_t * |
s |
|
) |
| const |
|
inlineoverridevirtual |
Gets pointer to the data and its size. Passing in nullptr is valid if not interested in the respective return value.
- Parameters
-
| p | If non-null, the address of the data is put here. |
[in,out] | s | If non-null, the size of the data is put here. |
Implements imgdoc2::IDataObjBase.
◆ GetSizeOfData()
size_t imgdoc2::DataObjectOnHeap::GetSizeOfData |
( |
| ) |
const |
|
inline |
Gets size of data in bytes.
- Returns
- The size of the data in bytes.
The documentation for this class was generated from the following file: