Documentation ¶
Index ¶
- Constants
- func CGoBytes(p, length uintptr) []byte
- func CGoStringN(p, length uintptr) string
- type Integer
- type Lua
- func (this Lua) Call(nargs, nresult int) error
- func (this Lua) Close()
- func (this Lua) Dump() []byte
- func (this Lua) GetField(index int, str string)
- func (this Lua) GetGlobal(str string)
- func (this Lua) GetMetaTable(index int) bool
- func (this Lua) GetTable(index int)
- func (this Lua) GetTop() int
- func (this Lua) GetType(index int) int
- func (this Lua) IsFunction(index int) bool
- func (this Lua) IsNil(index int) bool
- func (this Lua) IsString(index int) bool
- func (this Lua) IsTable(index int) bool
- func (this Lua) Len(index int)
- func (this Lua) Load(fname string) error
- func (this Lua) LoadBufferX(title string, chank []byte, mode string) error
- func (this Lua) LoadString(code string) error
- func (this Lua) NewTable()
- func (this Lua) NewThread() Lua
- func (this Lua) NewUserData(size uintptr) unsafe.Pointer
- func (this Lua) Next(index int) int
- func (this Lua) OpenLibs()
- func (this Lua) Pop(n uint)
- func (this Lua) Push(values ...interface{}) int
- func (this Lua) PushAnsiString(data []byte)
- func (this Lua) PushBool(value bool)
- func (this Lua) PushCFunction(fn uintptr)
- func (this Lua) PushGoFunction(fn func(Lua) int)
- func (this Lua) PushInteger(value Integer)
- func (this Lua) PushLightUserData(p unsafe.Pointer)
- func (this Lua) PushNil()
- func (this Lua) PushString(str string)
- func (this Lua) PushValue(index int)
- func (this Lua) RawGetI(index int, at Integer)
- func (this Lua) RawLen(index int) uintptr
- func (this Lua) RawSetI(index int, at Integer)
- func (this Lua) Remove(index int)
- func (this Lua) Replace(index int)
- func (this Lua) SetField(index int, str string)
- func (this Lua) SetGlobal(str string)
- func (this Lua) SetMetaTable(index int)
- func (this Lua) SetTable(index int)
- func (this Lua) SetTop(index int)
- func (this Lua) Source(fname string) error
- func (this Lua) State() uintptr
- func (this Lua) ToAnsiString(index int) []byte
- func (this Lua) ToBool(index int) bool
- func (this *Lua) ToCFunction(index int) uintptr
- func (this Lua) ToInteger(index int) (int, error)
- func (this Lua) ToPushable(index int) (Pushable, error)
- func (this Lua) ToString(index int) (string, error)
- func (this Lua) ToTable(index int) (Pushable, error)
- func (this Lua) ToUserData(index int) unsafe.Pointer
- type MetaOnlyTableT
- type MetaTableOwner
- type Property
- type Pushable
- type StringProperty
- type TBool
- type TCFunction
- type TFullUserData
- type TGoFunction
- type TLightUserData
- type TLuaFunction
- type TNil
- type TRawString
- type TString
- type TTable
Constants ¶
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 CGoStringN ¶
Types ¶
type Lua ¶
type Lua uintptr
func (Lua) GetMetaTable ¶
func (Lua) IsFunction ¶
'lua_isfunction' is implemented as C-macro in the header file.
func (Lua) LoadString ¶
func (Lua) PushAnsiString ¶
func (Lua) PushCFunction ¶
func (Lua) PushGoFunction ¶
func (Lua) PushInteger ¶
func (Lua) PushLightUserData ¶
func (Lua) PushString ¶
func (Lua) SetMetaTable ¶
func (Lua) ToAnsiString ¶
func (*Lua) ToCFunction ¶
type MetaOnlyTableT ¶
type MetaOnlyTableT struct {
Table TTable
}
func (MetaOnlyTableT) Push ¶
func (this MetaOnlyTableT) Push(L Lua) int
type MetaTableOwner ¶
func (*MetaTableOwner) Push ¶
func (this *MetaTableOwner) Push(L Lua) int
type StringProperty ¶
type StringProperty struct {
Pointer *string
}
func (StringProperty) Push ¶
func (this StringProperty) 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 ¶
func (TGoFunction) Push ¶
func (this TGoFunction) Push(L Lua) int
type TLightUserData ¶
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 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)
Click to show internal directories.
Click to hide internal directories.