ADTF
|
The SampleBuffer is the memory block object for the data of a ISample. More...
Public Member Functions | |
ADTF_IID (ISampleBuffer, "samplebuffer.ant.streaming.adtf.iid") | |
Defintion of interface ID. | |
virtual tResult | Write (const base::ant::IRawMemory &oBufferWrite)=0 |
Copy Writing Access. More... | |
virtual tResult | Read (base::ant::IRawMemory &&oBufferRead) const =0 |
Copy Reading Access. More... | |
virtual void * | GetPtr ()=0 |
Direct Writing Access. More... | |
virtual const void * | GetPtr () const =0 |
Direct Reading Access. More... | |
virtual size_t | GetSize () const =0 |
Returns the current size in bytes. | |
virtual size_t | GetCapacity () const =0 |
Returns the current maximal capacity in bytes. | |
virtual tResult | Reserve (size_t szSize)=0 |
Reserves memory. More... | |
virtual tResult | Resize (size_t szSize)=0 |
Resizes the Buffer. More... | |
![]() | |
ADTF_IID (ISharedLockedObject, "sharedlockedobject.ant.ucom.adtf.iid") | |
Marks the ISharedLockedObject to be castable with the ucom_cast<> More... | |
virtual tResult | LockShared () const =0 |
Locks the object for shared use. More... | |
virtual tResult | UnlockShared () const =0 |
Unlocks the object for shared use. More... | |
![]() | |
ADTF_IID (ILockedObject, "lockedobject.ant.ucom.adtf.iid") | |
Marks the ILockedObject to be castable with the ucom_cast<> More... | |
virtual tResult | Lock () const =0 |
Locks the object for exclusive use. More... | |
virtual tResult | Unlock () const =0 |
Unlocks the object for exclusive use. More... | |
![]() | |
ADTF_IID (IObject, "object.ant.ucom.adtf.iid") | |
Marks the IObject to be castable with the ucom_cast() More... | |
Protected Member Functions | |
~ISampleBuffer ()=default | |
not destructable | |
![]() | |
~ISharedLockedObject ()=default | |
Protected destructor --> Use implemented Destroy() instead of delete! | |
![]() | |
~ILockedObject ()=default | |
Protected destructor --> Use implemented Destroy() instead of delete! | |
![]() | |
~IObject ()=default | |
Protected destructor --> Use implemented Destroy() instead of delete! | |
The SampleBuffer is the memory block object for the data of a ISample.
Definition at line 21 of file samplebuffer_intf.h.
|
pure virtual |
Direct Reading Access.
Retrieves the raw buffer content pointer.
|
pure virtual |
Direct Writing Access.
Retrieves the raw buffer content pointer.
|
pure virtual |
Copy Reading Access.
The buffer content will be copied to the given memory. Depending on implemntation of the buffer, it will grow automatically.
[in,out] | oBufferRead | Memory to copy to. |
|
pure virtual |
Reserves memory.
Capacity will be at least szSize bytes. Current data will be lost.
szSize | [in] Size in bytes. |
|
pure virtual |
Resizes the Buffer.
Capacity will be at least szSize bytes. Current data will be retained.
szSize | [in] Size in bytes. |
|
pure virtual |
Copy Writing Access.
The given memory will be copied to the buffer. Depending on implemntation of the buffer, it will grow automatically.
[in] | oBufferWrite | Memory to copy from. |