WIP Block allocator implementation
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
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
This commit is contained in:
@@ -78,6 +78,12 @@ private:
|
||||
|
||||
// Remove a free block from the index
|
||||
void removeFreeBlock(TLSFBlock* block);
|
||||
|
||||
// Find a free block that can hold at least size bytes
|
||||
TLSFBlock* findFreeBlock(size_t size) const;
|
||||
|
||||
// Get the usable size of a block
|
||||
size_t getBlockUsableSize(const TLSFBlock* block) const;
|
||||
};
|
||||
|
||||
} // namespace mimir
|
||||
|
||||
Reference in New Issue
Block a user