| 123456789101112131415161718192021222324252627282930313233 |
- #pragma once
- #include <containerInformation.h>
- namespace pika
- {
- namespace memory
- {
- struct MemoryBlock
- {
- size_t size = 0;
- void *block = 0;
- };
- struct MemoryArena
- {
- //this is used to allocate the static memory of the container (struct member data)
- MemoryBlock containerStructMemory = {};
- //just malloc now probably an allocator in the future?
- void allocateStaticMemory(const ContainerInformation &containerInfo);
- void dealocateStaticMemory();
- };
- };
- };
|