68 virtual const void*
GetPtr()
const = 0;
142 static tResult Assign(const ::adtf::streaming::ant::ISampleBuffer* ,
149 static const void*
GetPtr(const ::adtf::streaming::ant::ISampleBuffer* pAssignValue)
151 return pAssignValue->GetPtr();
153 static size_t GetSize(const ::adtf::streaming::ant::ISampleBuffer* pAssignValue,
const size_t )
155 return pAssignValue->GetSize();
Copyright © Audi Electronics Venture GmbH.
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
#define RETURN_ERROR_DESC(_code,...)
Same as RETURN_ERROR(_error) using a printf like parameter list for detailed error description.
The IRawMemory interface provides methods for getting and setting memory values through abstract inte...
The SampleBuffer factory manages and can create SampleBuffers.
~ISampleBufferFactory()=default
not destructable
virtual tResult GetBuffer(ucom::ant::iobject_ptr< ISampleBuffer > &pBuffer, size_t szPreAllocateSize)=0
Retrieve a Buffer of the factory with the szPreAllocateSize in bytes.
ADTF_IID(ISampleBufferFactory, "samplebufferfactory.ant.streaming.adtf.iid")
defintion of interfac id
The SampleBuffer is the memory block object for the data of a ISample.
virtual tResult Reserve(size_t szSize)=0
Reserves memory.
virtual size_t GetCapacity() const =0
Returns the current maximal capacity in bytes.
virtual tResult Resize(size_t szSize)=0
Resizes the Buffer.
virtual void * GetPtr()=0
Direct Writing Access.
ADTF_IID(ISampleBuffer, "samplebuffer.ant.streaming.adtf.iid")
Defintion of interface ID.
virtual tResult Write(const base::ant::IRawMemory &oBufferWrite)=0
Copy Writing Access.
virtual size_t GetSize() const =0
Returns the current size in bytes.
~ISampleBuffer()=default
not destructable
virtual const void * GetPtr() const =0
Direct Reading Access.
virtual tResult Read(base::ant::IRawMemory &&oBufferRead) const =0
Copy Reading Access.
Base class for every interface type within the uCOM.
The ISharedLockedObject interface defines shared locking of an object.
Base object pointer to realize binary compatible reference counting in interface methods.
Namespace for the ADTF Base SDK.
Namespace for all functionality of the ADTF Streaming SDK provided since v3.0.
Namespace for the ADTF Streaming SDK.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.
Concept template class for non trivial adtf_memory types of type T to specialize the usage of adtf_me...
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 ...
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.
static const void * GetPtr(const T *pAssignValue)
Gets the memory pointer to the of container class T in parameter pAssignValue.