|
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 1295 of file UT_ParallelUtil.h.
|
inline |
Try to obtain buffer of given size.
Definition at line 1300 of file UT_ParallelUtil.h.
|
inline |
Destroy buffer.
Definition at line 1306 of file UT_ParallelUtil.h.
|
inline |
Return pointer to buffer, or NULL if buffer could not be obtained.
Definition at line 1304 of file UT_ParallelUtil.h.
|
inline |
True if buffer was successfully obtained, zero otherwise.
Definition at line 1302 of file UT_ParallelUtil.h.