donut-decomp/donut/mem/DataBlock.cpp
2021-10-20 21:13:54 +02:00

8 lines
No EOL
286 B
C++

#include <defines.h>
#include <mem/DataBlock.hpp>
namespace mem {
DataBlock::DataBlock(u32 size, s32 align, IAllocator &alloc)
: alloc_(alloc), block_(alloc.allocatorAlloc(size, align), size) {}
USED DataBlock::~DataBlock() { alloc_.allocatorFree(block_.ptr_); }
} // namespace mem