MemoryInfo (Kernel)


Retreives and returns the specified type of memory information.

Parameters:type (number) – miFREEHEAP, miLARGESTPTR, miFREEHUNK or miLARGESTHUNK.
Returns:The information requested.

The type can be one of the following:

type Description
miFREEHEAP The amount of free memory in the heap.
miLARGESTPTR The size of the largest chunk of heap memory.
miFREEHUNK The size of the largest available hunk memory block.
miLARGESTHUNK The total amount of free hunk memory, shifted to the right by 4 bits.


        "Free Heap: %u Bytes\nLargest ptr: %u Bytes\nFreeHunk: %u KBytes\nLargest hunk: %u Bytes"
        (MemoryInfo miFREEHEAP)
        (MemoryInfo miLARGESTPTR)
        (>> (MemoryInfo miFREEHUNK) 6)
        (MemoryInfo miLARGESTHUNK)