Implements a buffer whose storage is in local memory.
More...
#include <Buffer.hpp>
List of all members.
Detailed Description
Implements a buffer whose storage is in local memory.
Member Enumeration Documentation
- Enumerator:
| UserAllocatedBuffer |
|
| AutoAllocatedBuffer |
|
Constructor & Destructor Documentation
| vl::Buffer::Buffer |
( |
) |
[inline] |
| vl::Buffer::Buffer |
( |
const Buffer & |
other ) |
[inline] |
| vl::Buffer::~Buffer |
( |
) |
[inline] |
Member Function Documentation
| virtual const char* vl::Buffer::className |
( |
) |
[inline, virtual] |
| Buffer& vl::Buffer::operator= |
( |
const Buffer & |
other ) |
[inline] |
| void vl::Buffer::swap |
( |
Buffer & |
other ) |
[inline] |
| void vl::Buffer::clear |
( |
) |
[inline] |
| void vl::Buffer::resize |
( |
size_t |
byte_count, |
|
|
size_t |
alignment = 0 |
|
) |
| [inline] |
| void vl::Buffer::setUserAllocatedBuffer |
( |
void * |
ptr, |
|
|
size_t |
bytes |
|
) |
| [inline] |
Uses a user-allocated buffer as storage.
After calling this function any call to resize() is illegal. Calling this function enables the UserAllocatedBuffer mode. Call setAllocationMode( AutoAllocatedBuffer ) to revert to the default behaviour.
| size_t vl::Buffer::bytesUsed |
( |
) |
const [inline] |
| bool vl::Buffer::empty |
( |
) |
const [inline] |
| unsigned char* vl::Buffer::ptr |
( |
) |
[inline] |
| const unsigned char* vl::Buffer::ptr |
( |
) |
const [inline] |
| size_t vl::Buffer::alignment |
( |
) |
const [inline] |
| static void* vl::Buffer::alignedMalloc |
( |
size_t |
bytes, |
|
|
size_t |
alignment |
|
) |
| [inline, static] |
| static void vl::Buffer::alignedFree |
( |
void * |
ptr ) |
[inline, static] |
Member Data Documentation
The documentation for this class was generated from the following file:
- C:/VL/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vl/Buffer.hpp