RAII wrapper for a host bounce buffer allocation. More...
#include <bounce_buffer.hpp>
Public Member Functions | |
| Buffer (BounceBufferPool< Allocator > *pool, void *buffer, std::size_t size) | |
| Buffer (Buffer const &)=delete | |
| Buffer & | operator= (Buffer const &)=delete |
| Buffer (Buffer &&o)=delete | |
| Buffer & | operator= (Buffer &&o)=delete |
| void * | get () noexcept |
| void * | get (std::ptrdiff_t offset) noexcept |
| std::size_t | size () noexcept |
RAII wrapper for a host bounce buffer allocation.
Automatically returns the buffer to the pool when destroyed (RAII pattern). Provides access to the underlying memory and its size.
Definition at line 136 of file bounce_buffer.hpp.