lua/wrappers/util/lua_data_table.cpp
/**
	 * Returns the number of key values in the data table.
	 * This is an implementation of the __len metamethod as such the
	 * Lua # operator can be used to get the size.
	 *
	 * @returns integer The number of key values in the data table.
	 */
Returns the number of key values in the data table.
This is an implementation of the __len metamethod as such the
Lua # operator can be used to get the size.

@returns integer The number of key values in the data table.
Returns the number of key values in the data table . This is an implementation of the __len metamethod as such the Lua # operator can be used to get the size . @returns integer The number of key values in the data table .
int DataTable_len(lua_State *lua)
	{
		am::util::data::Table *table = castUData<am::util::data::Table>(lua, 1);
		if (table)
		{
			lua_pushinteger(lua, table->mapInner().size() + table->arrayInner().size());
			return 1;
		}
		return LuaState::expectedContext(lua, "__len", "DataTable");
	}
int DataTable_len ( lua_State * lua ) { am :: util :: data :: Table * table = castUData < am :: util :: data :: Table > ( lua , 1 ) ; if ( table ) { lua_pushinteger ( lua , table -> mapInner ( ) . size ( ) + table -> arrayInner ( ) . size ( ) ) ; return 1 ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Returns the number of key values in the data table.
Returns the number of key values in the data table .