Expand description
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.
- Local
Var - An entry in the local variable debug table.
Enums§
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 Aliases§
- 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.