CoronaBoxedDataFromLua Method |
Creates a boxed data object containing a copy of the value(s) indexed in Lua.
Namespace: CoronaLabs.Corona.WinRTAssembly: CoronaLabs (in CoronaLabs.dll) Version: 255.255.255.255
Syntax public static ICoronaBoxedData FromLua(
long luaStateMemoryAddress,
int luaStackIndex
)
Public Shared Function FromLua (
luaStateMemoryAddress As Long,
luaStackIndex As Integer
) As ICoronaBoxedData
Parameters
- luaStateMemoryAddress
- Type: SystemInt64
Memory address to a lua_State object, convertible to a C/C++ pointer. - luaStackIndex
- Type: SystemInt32
Index to a Lua object in the Lua stack such as a boolean, number, string, or table.
Return Value
Type:
ICoronaBoxedDataReturns a boxed data object containing a copy of the indexed Lua object's data.
Returns null if unable to copy the indexed data in Lua or if given invalid arguments.
See Also