mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-24 23:26:37 +00:00
Allocator refactor
This commit is contained in:
17
AerofoilPortable/GpAllocator_C.h
Normal file
17
AerofoilPortable/GpAllocator_C.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include "IGpAllocator.h"
|
||||
|
||||
class GpAllocator_C final : public IGpAllocator
|
||||
{
|
||||
public:
|
||||
void *Realloc(void *buf, size_t newSize) override;
|
||||
|
||||
static GpAllocator_C *GetInstance();
|
||||
|
||||
private:
|
||||
void *Alloc(size_t size);
|
||||
void Free(void *ptr);
|
||||
|
||||
static GpAllocator_C ms_instance;
|
||||
};
|
Reference in New Issue
Block a user