Added more Heap allocator stub functions.
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, macos-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled

Moved platform api includes into mimir_impl.h
This commit is contained in:
2026-08-15 15:25:50 -07:00
parent d2582025dc
commit 3a6711a942
6 changed files with 42 additions and 35 deletions

View File

@@ -39,6 +39,17 @@ class Heap
public:
Heap();
~Heap();
bool init(size_t minSize = 1ULL << 24, size_t maxSize = 1ULL << 32);
// Allocate `size` bytes
std::byte* alloc(size_t size);
// Allocate `size` bytes, aligned to 16 bytes and padded to next 16-byte offset.
std::byte* allocA16(size_t size);
// Allocate `size` bytes, aligned to 64 bytes and padded to next 64-byte offset.
std::byte* allocA64(size_t size);
};
} // namespace mimir