Click or drag to resize

MemTotal Function

X#
Report the total number of bytes used by other memory manager functions.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax
 FUNCTION MemTotal() AS DWORD
Request Example View Source

Return Value

Type: DWord
The total memory consumed by memory manager functions.
This value is rounded or accurate within 4 KB increments.
Remarks
Examples
This example uses MemTotal() before and after allocating a memory buffer through a MemAllocSeg() function:
X#
1? MemTotal()
2w := MemAllocSeg(100)
3? MemTotal()            // Larger value than first call
See Also