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 predictiv...@gmail.com javascript:: Nanopb has a heavier interface for including sub-messages. Here's an example, from their union structure: // This

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

2015-07-25 Thread Michael Haberler
David, Am 25.07.2015 um 07:03 schrieb David Rogers predictivestatm...@gmail.com: Nanopb has a heavier interface for including sub-messages. Here's an example, from their union structure: // This is an example of how to handle 'union' style messages // with nanopb, without allocating

[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

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

2015-07-24 Thread Michael Haberler
Hi David, Am 23.07.2015 um 22:47 schrieb David Rogers predictivestatm...@gmail.com: 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

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

2015-07-24 Thread David Rogers
Nanopb has a heavier interface for including sub-messages. Here's an example, from their union structure: // This is an example of how to handle 'union' style messages // with nanopb, without allocating memory for all the message types. // // There is no official type in Protocol Buffers for