This commit is contained in:
2026-03-20 19:19:16 +01:00
parent 778b3ed80c
commit aed9c39283
8 changed files with 244 additions and 144 deletions

View File

@@ -39,6 +39,10 @@ impl Heap {
}
}
pub fn size(self) -> usize {
self.raw_size
}
pub fn init(&mut self, heap_start: usize, heap_end: usize) {
self.start_address = heap_start as *mut HeapHeader;
self.end_address = heap_end as *mut HeapHeader;