add exported memory size getter functions for MemRegion objects
This commit is contained in:
parent
67b635029d
commit
34865fbbf5
1 changed files with 6 additions and 0 deletions
|
|
@ -465,4 +465,10 @@ proc getFreeMem(): int = tlRegion.remaining
|
|||
proc getTotalMem(): int =
|
||||
result = tlRegion.totalSize
|
||||
|
||||
proc getOccupiedMem*(r: MemRegion): int =
|
||||
result = r.totalSize - r.remaining
|
||||
proc getFreeMem*(r: MemRegion): int = r.remaining
|
||||
proc getTotalMem*(r: MemRegion): int =
|
||||
result = r.totalSize
|
||||
|
||||
proc setStackBottom(theStackBottom: pointer) = discard
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue