1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-29 12:55:59 +02:00
Beef/BeefLibs/corlib/src/Allocator.bf

22 lines
307 B
Beef
Raw Normal View History

2020-06-16 10:33:52 -07:00
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);
}
}
}