Added comments.

This commit is contained in:
Christoffer Lerno
2025-04-16 01:32:01 +02:00
parent d6fa9cd50b
commit e7c9ec0938
2 changed files with 479 additions and 324 deletions

View File

@@ -107,6 +107,9 @@ fn TempAllocator*? TempAllocator.derive_allocator(&self, usz min_size, usz buffe
return temp;
}
<*
Reset the entire temp allocator, which will merge all the children into it.
*>
fn void TempAllocator.reset(&self)
{
TempAllocator* child = self.derived;