[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

[protobuf] Protocol Buffers VS2010 C++

2015-07-24 Thread Winton Roseland
This is my first use of protocol buffers and I am using version 3.0 with either option cc_enable_arenas = false or true, I get a tremendous amount of heap usage with every message I create. I want to use the code to return data from a web service but the heap usage is too great. I have working

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