lua

package
v0.0.0-...-ae9e989 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2016 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const LUAINT_PER_UINTPTR = unsafe.Sizeof(Integer(0)) / unsafe.Sizeof(uintptr(0))
View Source
const LUA_REGISTRYINDEX = -1001000
View Source
const LUA_TBOOLEAN = 1
View Source
const LUA_TFUNCTION = 6
View Source
const LUA_TLIGHTUSERDATA = 2
View Source
const LUA_TNIL = 0
View Source
const LUA_TNUMBER = 3
View Source
const LUA_TSTRING = 4
View Source
const LUA_TTABLE = 5
View Source
const LUA_TTHREAD = 8
View Source
const LUA_TUSERDATA = 7

Variables

This section is empty.

Functions

func CGoBytes

func CGoBytes(p, length uintptr) []byte

func CGoStringN

func CGoStringN(p, length uintptr) string

Types

type Integer

type Integer int64

func (Integer) Expand

func (value Integer) Expand(list []uintptr) []uintptr

func (Integer) Push

func (value Integer) Push(L Lua) int

type Lua

type Lua uintptr

func New

func New() Lua

func (Lua) Call

func (this Lua) Call(nargs, nresult int) error

func (Lua) Close

func (this Lua) Close()

func (Lua) Dump

func (this Lua) Dump() []byte

func (Lua) GetField

func (this Lua) GetField(index int, str string)

func (Lua) GetGlobal

func (this Lua) GetGlobal(str string)

func (Lua) GetMetaTable

func (this Lua) GetMetaTable(index int) bool

func (Lua) GetTable

func (this Lua) GetTable(index int)

func (Lua) GetTop

func (this Lua) GetTop() int

func (Lua) GetType

func (this Lua) GetType(index int) int

func (Lua) IsFunction

func (this Lua) IsFunction(index int) bool

'lua_isfunction' is implemented as C-macro in the header file.

func (Lua) IsNil

func (this Lua) IsNil(index int) bool

func (Lua) IsString

func (this Lua) IsString(index int) bool

func (Lua) IsTable

func (this Lua) IsTable(index int) bool

'lua_istable' is implemented as C-macro in the header file.

func (Lua) Len

func (this Lua) Len(index int)

func (Lua) Load

func (this Lua) Load(fname string) error

func (Lua) LoadBufferX

func (this Lua) LoadBufferX(title string, chank []byte, mode string) error

func (Lua) LoadString

func (this Lua) LoadString(code string) error

func (Lua) NewTable

func (this Lua) NewTable()

func (Lua) NewThread

func (this Lua) NewThread() Lua

func (Lua) NewUserData

func (this Lua) NewUserData(size uintptr) unsafe.Pointer

func (Lua) Next

func (this Lua) Next(index int) int

func (Lua) OpenLibs

func (this Lua) OpenLibs()

func (Lua) Pop

func (this Lua) Pop(n uint)

func (Lua) Push

func (this Lua) Push(values ...interface{}) int

func (Lua) PushAnsiString

func (this Lua) PushAnsiString(data []byte)

func (Lua) PushBool

func (this Lua) PushBool(value bool)

func (Lua) PushCFunction

func (this Lua) PushCFunction(fn uintptr)

func (Lua) PushGoFunction

func (this Lua) PushGoFunction(fn func(Lua) int)

func (Lua) PushInteger

func (this Lua) PushInteger(value Integer)

func (Lua) PushLightUserData

func (this Lua) PushLightUserData(p unsafe.Pointer)

func (Lua) PushNil

func (this Lua) PushNil()

func (Lua) PushString

func (this Lua) PushString(str string)

func (Lua) PushValue

func (this Lua) PushValue(index int)

func (Lua) RawGetI

func (this Lua) RawGetI(index int, at Integer)

func (Lua) RawLen

func (this Lua) RawLen(index int) uintptr

func (Lua) RawSetI

func (this Lua) RawSetI(index int, at Integer)

func (Lua) Remove

func (this Lua) Remove(index int)

func (Lua) Replace

func (this Lua) Replace(index int)

func (Lua) SetField

func (this Lua) SetField(index int, str string)

func (Lua) SetGlobal

func (this Lua) SetGlobal(str string)

func (Lua) SetMetaTable

func (this Lua) SetMetaTable(index int)

func (Lua) SetTable

func (this Lua) SetTable(index int)

func (Lua) SetTop

func (this Lua) SetTop(index int)

func (Lua) Source

func (this Lua) Source(fname string) error

func (Lua) State

func (this Lua) State() uintptr

func (Lua) ToAnsiString

func (this Lua) ToAnsiString(index int) []byte

func (Lua) ToBool

func (this Lua) ToBool(index int) bool

func (*Lua) ToCFunction

func (this *Lua) ToCFunction(index int) uintptr

func (Lua) ToInteger

func (this Lua) ToInteger(index int) (int, error)

func (Lua) ToPushable

func (this Lua) ToPushable(index int) (Pushable, error)

func (Lua) ToString

func (this Lua) ToString(index int) (string, error)

func (Lua) ToTable

func (this Lua) ToTable(index int) (Pushable, error)

func (Lua) ToUserData

func (this Lua) ToUserData(index int) unsafe.Pointer

type MetaOnlyTableT

type MetaOnlyTableT struct {
	Table TTable
}

func (MetaOnlyTableT) Push

func (this MetaOnlyTableT) Push(L Lua) int

type MetaTableOwner

type MetaTableOwner struct {
	Body Pushable
	Meta Pushable
}

func (*MetaTableOwner) Push

func (this *MetaTableOwner) Push(L Lua) int

type Property

type Property struct {
	Pointer *Pushable
}

func (Property) Push

func (this Property) Push(L Lua) int

func (Property) Set

func (this Property) Set(L Lua, index int) error

type Pushable

type Pushable interface {
	Push(Lua) int
}

func NewVirtualTable

func NewVirtualTable(getter func(Lua) int, setter func(Lua) int) Pushable

type StringProperty

type StringProperty struct {
	Pointer *string
}

func (StringProperty) Push

func (this StringProperty) Push(L Lua) int

func (StringProperty) Set

func (this StringProperty) Set(L Lua, index int) error

type TBool

type TBool struct {
	Value bool
}

func (TBool) Push

func (this TBool) Push(L Lua) int

type TCFunction

type TCFunction uintptr

func (TCFunction) Push

func (this TCFunction) Push(L Lua) int

type TFullUserData

type TFullUserData []byte

func (TFullUserData) Push

func (this TFullUserData) Push(L Lua) int

type TGoFunction

type TGoFunction struct {
	Value func(Lua) int
}

func (TGoFunction) Push

func (this TGoFunction) Push(L Lua) int

type TLightUserData

type TLightUserData struct {
	Data unsafe.Pointer
}

func (TLightUserData) Push

func (this TLightUserData) Push(L Lua) int

type TLuaFunction

type TLuaFunction []byte

func (TLuaFunction) Push

func (this TLuaFunction) Push(L Lua) int

type TNil

type TNil struct{}

func (TNil) Push

func (this TNil) Push(L Lua) int

type TRawString

type TRawString struct {
	Value []byte
}

func (TRawString) Push

func (this TRawString) Push(L Lua) int

func (*TRawString) String

func (this *TRawString) String() (string, error)

type TString

type TString struct {
	Value string
}

func (TString) Push

func (this TString) Push(L Lua) int

type TTable

type TTable struct {
	Dict  map[string]Pushable
	Array map[int]Pushable
}

func (TTable) Push

func (this TTable) Push(L Lua) int

Jump to

Keyboard shortcuts

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