Doxygen Samurai Engine
0.0.1
Doxygen Samurai Engine Documentation
Loading...
Searching...
No Matches
memoryArena.h
Go to the documentation of this file.
1
#pragma once
2
#include <
containerInformation.h
>
3
4
namespace
samurai
5
{
6
namespace
memory
7
{
8
9
10
struct
MemoryBlock
11
{
12
size_t
size
= 0;
13
void
*
block
= 0;
14
};
15
16
17
struct
MemoryArena
18
{
19
20
//this is used to allocate the static memory of the container (struct member data)
21
MemoryBlock
containerStructMemory
= {};
22
23
//just malloc now probably an allocator in the future?
24
void
allocateStaticMemory
(
const
ContainerInformation
&containerInfo);
25
void
dealocateStaticMemory
();
26
};
27
28
29
30
31
};
32
};
33
containerInformation.h
samurai
Definition
assetManagerWindow.cpp:10
samurai::ContainerInformation
Definition
containerInformation.h:9
samurai::memory::MemoryArena
Definition
memoryArena.h:18
samurai::memory::MemoryArena::allocateStaticMemory
void allocateStaticMemory(const ContainerInformation &containerInfo)
Definition
memoryArena.cpp:6
samurai::memory::MemoryArena::dealocateStaticMemory
void dealocateStaticMemory()
Definition
memoryArena.cpp:12
samurai::memory::MemoryArena::containerStructMemory
MemoryBlock containerStructMemory
Definition
memoryArena.h:21
samurai::memory::MemoryBlock
Definition
memoryArena.h:11
samurai::memory::MemoryBlock::block
void * block
Definition
memoryArena.h:13
samurai::memory::MemoryBlock::size
size_t size
Definition
memoryArena.h:12
shared
memory
memoryArena.h
Generated by
1.10.0