1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-21 01:18:02 +02:00

Fixed append alignment with unaligned stomp allocator

This commit is contained in:
Brian Fiete 2022-07-16 06:03:35 -04:00
parent ce64d43b6a
commit b2b964489e
3 changed files with 18 additions and 13 deletions

View file

@ -5,13 +5,13 @@ namespace System
{
interface IRawAllocator
{
void* Alloc(int size, int align);
void Free(void* ptr);
void* Alloc(int size, int align) mut;
void Free(void* ptr) mut;
}
interface ITypedAllocator : IRawAllocator
{
void* AllocTyped(Type type, int size, int align);
void* AllocTyped(Type type, int size, int align) mut;
}
struct StdAllocator : IRawAllocator