#include <MemoryService.h>
|
void * | Alloc (size_t size) const |
| Allocates memory from the heap.
|
void * | Alloc (size_t size, const char *file, size_t line) const |
| Allocates memory with debugging information.
|
void | Free (void *ptr) const |
| Frees memory in the heap.
|
| Allocator (const Allocator &other)=default |
Allocator & | operator= (const Allocator &rhs)=default |
| ~Allocator ()=default |
◆ Allocator()
Fiea::Engine::Memory::Allocator::Allocator |
( |
const Allocator & | other | ) |
|
|
default |
◆ ~Allocator()
Fiea::Engine::Memory::Allocator::~Allocator |
( |
| ) |
|
|
default |
◆ Alloc() [1/2]
void * Fiea::Engine::Memory::Allocator::Alloc |
( |
size_t | size | ) |
const |
|
nodiscard |
Allocates memory from the heap.
- Parameters
-
size | The size of the memory block to allocate. |
- Returns
- Pointer to the allocated memory.
◆ Alloc() [2/2]
void * Fiea::Engine::Memory::Allocator::Alloc |
( |
size_t | size, |
|
|
const char * | file, |
|
|
size_t | line ) const |
|
nodiscard |
Allocates memory with debugging information.
- Parameters
-
size | The size of the memory block to allocate. |
file | The file name where the allocation occurs. |
line | The line number where the allocation occurs. |
- Returns
- Pointer to the allocated memory.
◆ Free()
void Fiea::Engine::Memory::Allocator::Free |
( |
void * | ptr | ) |
const |
Frees memory in the heap.
- Parameters
-
ptr | Pointer to the memory block to free. |
◆ operator=()
◆ MemoryService
The documentation for this struct was generated from the following files: