#include <djv_data.h>
Public Member Functions | |
DataLocker () | |
DataLocker (const Data *inData) | |
~DataLocker () | |
const u8 * | getPtr () const |
size_t | getSize () const |
operator const u8 * () const | |
void | lock (const Data *inData) |
void | release () |
This class provides easy access to the data on memory.\n If the \ref Data instance passed is a \ref MemoryData, this class uses the memory block on that instance whereas allocates a temporary memory block if not a \ref MemoryData.
|
inline |
Initialize without locking any Data.
|
inlineexplicit |
|
inline |
Destruct the lock (release the lock).
|
inline |
Get pointer to the locked memory block.
|
inline |
Get the size of the locked memory block.
|
inline |
Lock a Data. The memory block can be obtained by calling getPtr.
inData | A Data instance to lock. |
Referenced by DataLocker().
|
inline |
Get pointer to the locked memory block.
|
inline |
Unlock the Data instance.
Referenced by lock(), and ~DataLocker().