View Source Luex.Userdata (luex v0.0.2)

Link to this section Summary

Link to this section Types

Link to this section Functions

@spec get_data(Luex.lua_call(t())) :: Luex.lua_call(payload :: any())
@spec get_data(Luex.vm(), t()) :: Luex.lua_call(payload :: any())
@spec new(Luex.vm(), payload :: any()) :: Luex.lua_call(t())

allocate a new userdata in the virtual machine

Link to this function

set_data(call_result, payload)

View Source
Link to this function

set_data(vm, uref, payload)

View Source
@spec set_data(Luex.lua_call(any()), t(), payload :: any()) :: Luex.vm()
@spec set_data(Luex.vm(), t(), payload :: any()) :: Luex.vm()