static int rava_system_memory(lua_State* L) { lua_settop(L, 0); lua_newtable(L); lua_pushinteger(L, uv_get_free_memory()); lua_setfield(L, -2, "free"); lua_pushinteger(L, uv_get_total_memory()); lua_setfield(L, -2, "total"); return 1; }
/* * Class: com_oracle_libuv_LibUV * Method: _getFreeMem * Signature: ()D */ JNIEXPORT jdouble JNICALL Java_com_oracle_libuv_LibUV__1getFreeMem (JNIEnv *env, jclass cls) { return (jdouble) uv_get_free_memory(); }
static PyObject * Util_func_get_free_memory(PyObject *obj) { UNUSED_ARG(obj); return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG)uv_get_free_memory()); }
int luv_get_free_memory(lua_State* L) { lua_pushnumber(L, uv_get_free_memory()); return 1; }
static int luv_mem_free(lua_State* L) { lua_pushinteger(L, uv_get_free_memory()); return 1; }