72 xvecBufferTag*
handle() const noexcept;
87 return static_cast<T*
>(
data());
97 xvecExecutionContextTag* context_ =
nullptr;
98 xvecBufferTag* handle_ =
nullptr;
RAII wrapper for xvecBufferTag.
xvecBufferTag * handle() const noexcept
Get the underlying C API handle.
Buffer & operator=(const Buffer &)=delete
Buffer(Buffer &&other) noexcept
Buffer(xvecExecutionContextTag *context, size_t size)
Create a buffer.
void * data() const
Get the raw data pointer.
Buffer & operator=(Buffer &&other) noexcept
size_t size() const
Get the buffer size in bytes.
Buffer(const Buffer &)=delete
Exception types for C++ XVECTOR wrappers.
Core types, enums, and structures for the XVector library.