blob: ee3ee1aa33c54b98b780df28af35687d675977b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef SLANG_MEMORY_POOL_H
#define SLANG_MEMORY_POOL_H
#include "../core/basic.h"
namespace Slang
{
struct MemoryPoolSegment;
struct MemoryPool : public RefObject
{
MemoryPoolSegment* curSegment = nullptr;
~MemoryPool();
void* alloc(size_t size);
void* allocZero(size_t size);
};
}
#endif
|