lua_state

package
v0.0.0-...-372ebbf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2021 License: Apache-2.0 Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertLuaTable

func ConvertLuaTable(lv *lua.LTable) map[string]interface{}

func ConvertLuaValue

func ConvertLuaValue(lv lua.LValue) interface{}

func ConvertMap

func ConvertMap(l *lua.LState, data map[string]interface{}) *lua.LTable

func Marshal

func Marshal(b []byte, lv lua.LValue) []byte

func OpenOsRuntime

func OpenOsRuntime(L *lua.LState) int

func UnMarshal

func UnMarshal(b []byte, l *lua.LState) (lua.LValue, []byte)

Types

type LNumber

type LNumber = lua.LNumber

type LState

type LState = lua.LState

type LTable

type LTable = lua.LTable

type LValue

type LValue = lua.LValue

type LuaRuntime

type LuaRuntime struct {
	// contains filtered or unexported fields
}

func NewLuaStae

func NewLuaStae() *LuaRuntime

func (*LuaRuntime) DoFile

func (this *LuaRuntime) DoFile(path string)

func (*LuaRuntime) GetGlobal

func (this *LuaRuntime) GetGlobal(f string) LValue

func (*LuaRuntime) GetVm

func (this *LuaRuntime) GetVm() *LState

func (*LuaRuntime) PCall

func (this *LuaRuntime) PCall(f string, args ...interface{})

func (*LuaRuntime) PCall2

func (this *LuaRuntime) PCall2(f string, args ...LValue)

func (*LuaRuntime) PCall3

func (this *LuaRuntime) PCall3(f LValue, args ...LValue)

func (*LuaRuntime) RegisterFunction

func (this *LuaRuntime) RegisterFunction(s string, f func(*lua.LState) int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL