13#ifndef ML_MEMORY_BLOCK_HANDLE_H
14#define ML_MEMORY_BLOCK_HANDLE_H
18#pragma warning( push,0 )
25#include "../mlMemoryManagerDllExport.h"
85#ifndef DOXYGEN_SHOULD_SKIP_THIS
92 MLMemoryBlock* _memoryBlock;
94 friend class MLMemoryBlock;
MLMemoryBlockHandle()
Creates a memory block handle that is NULL.
MLMemoryBlockHandle(const MLWeakMemoryBlockHandle &weakMemoryBlockHandle)
size_t size() const
Returns the size of the data. If this handle is NULL, then 0 is returned.
MLMemoryBlockHandle(const MLMemoryBlockHandle &memoryBlockHandle)
void * data() const
Returns the data of the memory block. If this handle is NULL, then NULL is returned.
MLMemoryBlockHandle & operator=(const MLWeakMemoryBlockHandle &weakMemoryBlockHandle)
MLMemoryBlockHandle & operator=(const MLMemoryBlockHandle &memoryBlockHandle)