Added reset

This commit is contained in:
mcrcortex
2025-05-17 11:34:53 +10:00
parent f872b995c3
commit b9e5870a7f

View File

@@ -26,6 +26,14 @@ public class AllocationArena {
//Flags //Flags
private boolean resized;//If the required memory of the entire buffer grew private boolean resized;//If the required memory of the entire buffer grew
public void reset() {
this.FREE.clear();
this.TAKEN.clear();
this.sizeLimit = Long.MAX_VALUE;
this.totalSize = 0;
this.resized = false;
}
//Gets and resets the resized flag //Gets and resets the resized flag
public boolean getResetResized() { public boolean getResetResized() {
boolean ret = this.resized; boolean ret = this.resized;