The SampleBuffer is the memory block object for the data of a ISample.
More...
#include <samplebuffer_intf.h>
|
| ~ISampleBuffer ()=default |
| not destructable
|
|
| ~ISharedLockedObject ()=default |
| Protected destructor --> Only the final implementation can be destroyed!
|
|
| ~ILockedObject ()=default |
| Protected destructor --> Only the final implementation can be destroyed!
|
|
| ~IObject ()=default |
| Protected destructor --> Only the final implementation can be destroyed!
|
|
The SampleBuffer is the memory block object for the data of a ISample.
Definition at line 21 of file samplebuffer_intf.h.
◆ GetPtr() [1/2]
virtual const void * GetPtr |
( |
| ) |
const |
|
pure virtual |
Direct Reading Access.
Retrieves the raw buffer content pointer.
- Returns
- the buffers raw pointer.
◆ GetPtr() [2/2]
virtual void * GetPtr |
( |
| ) |
|
|
pure virtual |
Direct Writing Access.
Retrieves the raw buffer content pointer.
- Warning
- Do not write more than GetSize() bytes !
- Returns
- the buffers raw pointer.
◆ Read()
Copy Reading Access.
The buffer content will be copied to the given memory. Depending on implemntation of the buffer, it will grow automatically.
- Parameters
-
[in,out] | oBufferRead | Memory to copy to. |
- Returns
- Standard Result Code.
◆ Reserve()
virtual tResult Reserve |
( |
size_t | szSize | ) |
|
|
pure virtual |
Reserves memory.
Capacity will be at least szSize bytes. Current data will be lost.
- Parameters
-
szSize | [in] Size in bytes. |
- Returns
- standard result.
◆ Resize()
virtual tResult Resize |
( |
size_t | szSize | ) |
|
|
pure virtual |
Resizes the Buffer.
Capacity will be at least szSize bytes. Current data will be retained.
- Parameters
-
szSize | [in] Size in bytes. |
- Returns
- standard result.
◆ Write()
Copy Writing Access.
The given memory will be copied to the buffer. Depending on implemntation of the buffer, it will grow automatically.
- Parameters
-
[in] | oBufferWrite | Memory to copy from. |
- Returns
- Standard Result Code.