跳到主要内容

heapspace

描述​

返回当前堆/栈内存的可用空间(单位:字节)。

示例​

public OnGameModeInit()
{
printf("堆内存空间:%i KB", heapspace() / 1024);
return 1;
}