Defold Proto - Profobuf Library

logo

Proto

Proto - a Defold library for working with protocol buffers (protobuf or proto). The library provides functions for encoding, decoding, and verifying protocol buffer messages. Verification is used to ensure that the lua table matches the protocol buffer definition. If the table data does not match the definition, the missing fields are set to default values, and the extra fields are removed. Verification also supports nested messages.

Features

  • Encoding: Encode a table with data to a binary string by proto definition.
  • Decoding: Decode a binary string to a table with data by proto definition.
  • Verification: Verify a table with data to match the proto definition.
  • Annotations: Editor script to generate Lua annotations from proto files.

Setup

See the Defold Proto repository on Github for the Setup, Documentation, API Reference and Use Cases

:heart: Support project :heart:

Your donation helps me stay engaged in creating valuable projects for Defold. If you appreciate what I’m doing, please consider supporting me!

Github-sponsors Ko-Fi BuyMeACoffee

12 Likes