◆ StdCppVariableMemoryPool()
StdCppOSWrapper::StdCppVariableMemoryPool::StdCppVariableMemoryPool |
( |
| ) |
|
|
inline |
◆ ~StdCppVariableMemoryPool()
StdCppOSWrapper::StdCppVariableMemoryPool::~StdCppVariableMemoryPool |
( |
| ) |
|
|
inline |
◆ allocate()
void * StdCppOSWrapper::StdCppVariableMemoryPool::allocate |
( |
std::size_t |
size | ) |
|
|
inlinevirtual |
Allocate a memory from this VariableMemoryPool.
- Parameters
-
size | Number of bytes of allocation |
- Returns
- If required free areas exist in the memory pool then returns a pointer of allocated memory, else returns null pointer
Implements OSWrapper::VariableMemoryPool.
◆ deallocate()
void StdCppOSWrapper::StdCppVariableMemoryPool::deallocate |
( |
void * |
p | ) |
|
|
inlinevirtual |
Release the allocated memory.
- Parameters
-
p | Pointer of allocated memory |
- Note
- If p is null pointer, do nothing.
Implements OSWrapper::VariableMemoryPool.
The documentation for this class was generated from the following file: