Buffer class implementing a buffer. More...
#include <cvb/buffer.hpp>
Inherits BufferBase.
Static Public Member Functions | |
| static BufferPtr | FromHandle (HandleGuard< BufferBase > &&guard) |
| Creates a buffer from a classic API handle. More... | |
Additional Inherited Members | |
Public Member Functions inherited from BufferBase | |
| void * | Handle () const noexcept |
| Classic API buffer handle. More... | |
| std::uint8_t * | BasePtr () const noexcept |
| Gets the pointer to the start of this buffer. More... | |
| size_t | Size () const noexcept |
| Gets the actual size of this buffer in bytes. More... | |
| size_t | Capacity () const noexcept |
| Gets the allocated size of this buffer in bytes. More... | |
Buffer class implementing a buffer.
|
inlinestatic |
Creates a buffer from a classic API handle.
| [in] | guard | Life time guard for C-API handle. |