memoryArena.h 481 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include <containerInformation.h>
  3. namespace pika
  4. {
  5. namespace memory
  6. {
  7. struct MemoryBlock
  8. {
  9. size_t size = 0;
  10. void *block = 0;
  11. };
  12. struct MemoryArena
  13. {
  14. //this is used to allocate the static memory of the container (struct member data)
  15. MemoryBlock containerStructMemory = {};
  16. //just malloc now probably an allocator in the future?
  17. void allocateStaticMemory(const ContainerInformation &containerInfo);
  18. void dealocateStaticMemory();
  19. };
  20. };
  21. };