Base class of all buffers. More...
#include <cvb/buffer_base.hpp>
Inherited by Buffer, and PFNCBuffer.
Public Member Functions | |
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... | |
Base class of all buffers.
|
inlinenoexcept |
Gets the pointer to the start of this buffer.
|
inlinenoexcept |
Gets the allocated size of this buffer in bytes.
This value is a constant and resembles the allocated number of bytes in this buffer.
|
inlinenoexcept |
Classic API buffer handle.
It is normally not necessary to work with this handle.
|
inlinenoexcept |
Gets the actual size of this buffer in bytes.
The actual size is the currently filled size of the buffer. For the allocated size see GetBufferCapacity().