bytecode

package
v1.5.11 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package bytecode provides serialization and deserialization of compiled Lua bytecode.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidHeader     = errors.New("invalid bytecode header")
	ErrVersionMismatch   = errors.New("bytecode version mismatch")
	ErrCorruptedBytecode = errors.New("corrupted bytecode")
)

Functions

func Dump

func Dump(proto *lua.FunctionProto) ([]byte, error)

Dump serializes a FunctionProto to bytes.

func Undump

func Undump(data []byte) (*lua.FunctionProto, error)

Undump deserializes bytes to a FunctionProto.

Types

This section is empty.

Jump to

Keyboard shortcuts

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