NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
char GetMemoryInfo ( bool  Compact,
unsigned int &  PoolSize,
unsigned int &  DataspaceSize 

Read memory information.

Read the current pool size and dataspace size. Optionally compact the dataspace before returning the information. Running programs have a maximum of 32k bytes of memory available. The amount of free RAM can be calculated by subtracting the value returned by this function from POOL_MAX_SIZE.

This function requires the enhanced NBC/NXC firmware version 1.28+.
CompactA boolean value indicating whether to compact the dataspace or not.
PoolSizeThe current pool size.
DataspaceSizeThe current dataspace size.
The function call result. It will be NO_ERR if the compact operation is not performed. Otherwise it will be the result of the compact operation.