util

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseLState added in v0.10.0

func CloseLState(L *C.lua_State)

func CompileFromFile

func CompileFromFile(srcFileName, outFileName, abiFileName string) error

func DumpFromFile

func DumpFromFile(srcFileName string) error

func DumpFromStdin

func DumpFromStdin() error

func NewLState added in v0.10.0

func NewLState() *C.lua_State

Types

type LuaCode added in v1.3.3

type LuaCode []byte

func Compile

func Compile(L *C.lua_State, code string) (LuaCode, error)

func NewLuaCode added in v1.3.3

func NewLuaCode(byteCode, abi []byte) LuaCode

func (LuaCode) ABI added in v1.3.3

func (c LuaCode) ABI() []byte

func (LuaCode) ByteCode added in v1.3.3

func (c LuaCode) ByteCode() []byte

func (LuaCode) Bytes added in v1.3.3

func (c LuaCode) Bytes() []byte

func (LuaCode) IsValidFormat added in v1.3.3

func (c LuaCode) IsValidFormat() bool

func (LuaCode) Len added in v1.3.3

func (c LuaCode) Len() int

type LuaCodePayload added in v1.3.3

type LuaCodePayload []byte

func NewLuaCodePayload added in v1.3.3

func NewLuaCodePayload(code types.Code, args []byte) LuaCodePayload

func (LuaCodePayload) Args added in v1.3.3

func (p LuaCodePayload) Args() []byte

func (LuaCodePayload) Code added in v1.3.3

func (p LuaCodePayload) Code() types.Code

func (LuaCodePayload) HasArgs added in v1.3.3

func (p LuaCodePayload) HasArgs() bool

func (LuaCodePayload) IsValidFormat added in v1.3.3

func (p LuaCodePayload) IsValidFormat() (bool, error)

func (LuaCodePayload) Len added in v1.3.3

func (p LuaCodePayload) Len() int

Jump to

Keyboard shortcuts

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