HDK
|
#include <UT_WorkBuffer.h>
Public Member Functions | |
SYS_FORCE_INLINE | AutoLock (UT_WorkBuffer &buf) |
SYS_FORCE_INLINE | ~AutoLock () |
SYS_FORCE_INLINE void | release (bool recompute_length=false) |
You can manually release the buffer. More... | |
SYS_FORCE_INLINE void | relock () |
If you've manually released the lock, you can relock the buffer. More... | |
SYS_FORCE_INLINE char * | operator* () const |
SYS_FORCE_INLINE char * | string () const |
Class to handle auto-locking of the UT_WorkBuffer. This is not related to multi-threading, but to the lock/release methods above.
You should never append data to a locked buffer.
Definition at line 208 of file UT_WorkBuffer.h.
|
inline |
Definition at line 212 of file UT_WorkBuffer.h.
|
inline |
Definition at line 218 of file UT_WorkBuffer.h.
|
inline |
Get access to the non-const buffer. This may return nullptr if the lock has been released.
Definition at line 226 of file UT_WorkBuffer.h.
|
inline |
You can manually release the buffer.
Definition at line 233 of file UT_WorkBuffer.h.
|
inline |
If you've manually released the lock, you can relock the buffer.
Definition at line 243 of file UT_WorkBuffer.h.
|
inline |
Get access to the non-const buffer. This may return nullptr if the lock has been released.
Definition at line 228 of file UT_WorkBuffer.h.