#include <Fw/Types/MemAllocator.hpp>
Definition at line 46 of file MemAllocator.hpp.
◆ MemAllocator()
Fw::MemAllocator::MemAllocator |
( |
| ) |
|
|
protected |
◆ ~MemAllocator()
Fw::MemAllocator::~MemAllocator |
( |
| ) |
|
|
protectedvirtual |
◆ allocate()
Allocate memory.
- Parameters
-
identifier | the memory segment identifier, each identifier is to be used in once single allocation |
size | the requested size - changed to actual if different |
recoverable | - flag to indicate the memory could be recoverable |
- Returns
- the pointer to memory. Zero if unable to allocate
Implemented in Fw::MmapAllocator, and Fw::MallocAllocator.
◆ deallocate()
virtual void Fw::MemAllocator::deallocate |
( |
const NATIVE_UINT_TYPE |
identifier, |
|
|
void * |
ptr |
|
) |
| |
|
pure virtual |
Deallocate memory.
- Parameters
-
identifier | the memory segment identifier, each identifier is to be used in once single allocation |
ptr | the pointer to memory returned by allocate() |
Implemented in Fw::MmapAllocator, and Fw::MallocAllocator.
The documentation for this class was generated from the following files: