mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-29 12:55:59 +02:00
22 lines
307 B
Beef
22 lines
307 B
Beef
![]() |
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);
|
||
|
}
|
||
|
}
|
||
|
}
|