util

package
v2.4.7-dev1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseLState

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

func NewLState() *C.lua_State

Types

type LuaCode

type LuaCode []byte

func Compile

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

func NewLuaCode

func NewLuaCode(byteCode, abi []byte) LuaCode

func (LuaCode) ABI

func (c LuaCode) ABI() []byte

func (LuaCode) ByteCode

func (c LuaCode) ByteCode() []byte

func (LuaCode) Bytes

func (c LuaCode) Bytes() []byte

func (LuaCode) IsValidFormat

func (c LuaCode) IsValidFormat() bool

func (LuaCode) Len

func (c LuaCode) Len() int

type LuaCodePayload

type LuaCodePayload []byte

func NewLuaCodePayload

func NewLuaCodePayload(code LuaCode, args []byte) LuaCodePayload

func (LuaCodePayload) Args

func (p LuaCodePayload) Args() []byte

func (LuaCodePayload) Code

func (p LuaCodePayload) Code() LuaCode

func (LuaCodePayload) HasArgs

func (p LuaCodePayload) HasArgs() bool

func (LuaCodePayload) IsValidFormat

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

func (LuaCodePayload) Len

func (p LuaCodePayload) Len() int

Jump to

Keyboard shortcuts

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