proto

package module
v0.0.0-...-85deb1b Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

README

Work in progress: Lua bindings for Go protocol buffers.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LibLoader = packagelib.Loader{
	Load: load,
	Name: "proto",
}

LibLoader can load the proto package.

Functions

func Unwrap

func Unwrap(luaValue rt.Value) (msg proto.Message, ok bool)

Unwrap unwraps the protobuf message from the given lua value.

func Wrap

func Wrap(msg proto.Message) rt.Value

Wrap returns the given protobuf message as a Lua value.

func WrapReadOnly

func WrapReadOnly(msg proto.Message) rt.Value

WrapReadOnly returns the given protobuf message as a Lua value. The returned message cannot be changed from Lua.

Types

This section is empty.

Jump to

Keyboard shortcuts

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