Crate lua_kit [] [src]

Toolkit for working with serialized Lua functions and bytecode.

Synced to Lua 5.3.

Modules

bytecode

Tools for bytecode generation.

Structs

Debug

Optional debugging information for a function.

Function

A Lua function prototype.

LocalVar

An entry in the local variable debug table.

Enums

Constant

An entry in the constant pool.

Upvalue

An entry in the upvalue table.

Constants

DATA

Test text to catch translation errors.

FORMAT

The Lua bytecode format.

SIGNATURE

Signature to mark Lua bytecode files.

TEST_INT

A test integer to know endianness.

TEST_NUMBER

A test floating-point number to know endianness.

VERSION

The Lua version, in the form (MAJOR << 4) | MINOR.

Functions

read_file

Deserialize bytecode into a Function.

write_file

Serialize a Function to bytecode.

Type Definitions

Instruction

The bytecode's Instruction type.

Int

The bytecode's C int type.

Integer

The bytecode's Integer type.

Number

The bytecode's Number (floating-point) type.

Size

The bytecodes' C size_t type.