15 #include <peak/dll_interface/peak_dll_interface_util.hpp> 88 friend ClassCreator<BufferChunk>;
92 std::weak_ptr<Buffer> m_parentBuffer;
106 : m_backendHandle(bufferChunkHandle)
107 , m_parentBuffer(parentBuffer)
112 return QueryNumericFromCInterfaceFunction<uint64_t>(
118 return QueryNumericFromCInterfaceFunction<void*>(
124 return QueryNumericFromCInterfaceFunction<size_t>(
130 return LockOrThrow(m_parentBuffer);
uint64_t ID() const
Returns the ID.
Definition: peak_buffer_chunk.hpp:110
void * BasePtr() const
Returns the base pointer.
Definition: peak_buffer_chunk.hpp:116
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition: peak_dynamic_loader.h:32
std::shared_ptr< Buffer > ParentBuffer() const
Returns the parent buffer.
Definition: peak_buffer_chunk.hpp:128
size_t Size() const
Returns the size.
Definition: peak_buffer_chunk.hpp:122
PEAK_C_API PEAK_BufferChunk_GetBasePtr(PEAK_BUFFER_CHUNK_HANDLE bufferChunkHandle, void **basePtr)
Asks the given buffer chunk for its base pointer.
#define PEAK_C_ABI_PREFIX
Definition: peak_dll_defines.h:16
struct PEAK_BUFFER_CHUNK * PEAK_BUFFER_CHUNK_HANDLE
Definition: peak_backend.h:389
PEAK_C_API PEAK_BufferChunk_GetID(PEAK_BUFFER_CHUNK_HANDLE bufferChunkHandle, uint64_t *id)
Asks the given buffer chunk for its ID.
BufferChunk & operator=(const BufferChunk &other)=delete
Represents a buffer chunk.
Definition: peak_buffer_chunk.hpp:35
PEAK_C_API PEAK_BufferChunk_GetSize(PEAK_BUFFER_CHUNK_HANDLE bufferChunkHandle, size_t *size)
Asks the given buffer chunk for its size.