1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Adding StdAllocator

This commit is contained in:
Brian Fiete 2020-06-16 10:33:52 -07:00
parent 116a519f4e
commit 1a64a87cc6

View file

@ -0,0 +1,21 @@
namespace System
{
interface IRawAllocator
{
void* Alloc(int size, int align);
void Free(void* ptr);
}
struct StdAllocator : IRawAllocator
{
public void* Alloc(int size, int align)
{
return Internal.StdMalloc(size);
}
public void Free(void* ptr)
{
Internal.StdFree(ptr);
}
}
}