Allocator for a lock free hash map.
More...
#include <LockFreeHashMap.h>
Allocator for a lock free hash map.
◆ ~LFHMAllocator()
◆ Allocate()
Allocate a new block of data
- Parameters
-
inBlockSize | Size of block to allocate (will potentially return a smaller block if memory is full). |
ioBegin | Should be the start of the first free byte in current memory block on input, will contain the start of the first free byte in allocated block on return. |
ioEnd | Should be the byte beyond the current memory block on input, will contain the byte beyond the allocated block on return. |
◆ Clear()
void LFHMAllocator::Clear |
( |
| ) |
|
|
inline |
◆ FromOffset()
template<class T >
T * LFHMAllocator::FromOffset |
( |
uint32 |
inOffset | ) |
const |
|
inline |
Convert an offset to a pointer.
◆ Init()
void LFHMAllocator::Init |
( |
uint |
inObjectStoreSizeBytes | ) |
|
|
inline |
Initialize the allocator
- Parameters
-
inObjectStoreSizeBytes | Number of bytes to reserve for all key value pairs |
◆ ToOffset()
template<class T >
uint32 LFHMAllocator::ToOffset |
( |
const T * |
inData | ) |
const |
|
inline |
Convert a pointer to an offset.
The documentation for this class was generated from the following files: