[protobuf] Yet Another Protocol Buffers Implementation for C

2015-07-24 Thread David Rogers
sprotoc - short for stack protocol buffer compiler is a C-code generator for protocol buffers. It lives at: https://github.com/frobnitzem/sprotoc I coded it up a year ago and have been using it happily since. What makes it unique is the ability to write your own copy in/out functions for each mes

Re: [protobuf] Yet Another Protocol Buffers Implementation for C

2015-07-24 Thread David Rogers
output data structure, one message at a time. It also doesn't litter message-specific field tags or names anywhere - only high-level, per-message encoding/decoding functions. I don't know if nanopb does this, but some implementations do. Hope that helps, ~ David. On 7/25/15

Re: [protobuf] Yet Another Protocol Buffers Implementation for C

2015-07-26 Thread David Rogers
On Sunday, July 26, 2015 at 1:53:46 AM UTC-4, Michael Haberler wrote: David, > > > > Am 25.07.2015 um 07:03 schrieb David Rogers >: > > > > Nanopb has a heavier interface for including sub-messages. Here's an > example, from their union structure: &g