HDK
|
Raw memory buffer with automatic cleanup. More...
#include <UT_ParallelUtil.h>
Public Member Functions | |
raw_buffer (size_t bytes) | |
Try to obtain buffer of given size. More... | |
operator bool () const | |
True if buffer was successfully obtained, zero otherwise. More... | |
void * | get () const |
Return pointer to buffer, or NULL if buffer could not be obtained. More... | |
~raw_buffer () | |
Destroy buffer. More... | |
Raw memory buffer with automatic cleanup.
Definition at line 1276 of file UT_ParallelUtil.h.
|
inline |
Try to obtain buffer of given size.
Definition at line 1280 of file UT_ParallelUtil.h.
|
inline |
Destroy buffer.
Definition at line 1286 of file UT_ParallelUtil.h.
|
inline |
Return pointer to buffer, or NULL if buffer could not be obtained.
Definition at line 1284 of file UT_ParallelUtil.h.
|
inline |
True if buffer was successfully obtained, zero otherwise.
Definition at line 1282 of file UT_ParallelUtil.h.