Questions tagged [protobuf-c]

Protocol buffers are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data

in this context, protobuf-c is strong related to c because the automatically generated code is C headers and implementation.

From the official site:

Protocol buffers are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data – think XML, but smaller, faster, and simpler. You define how you want your data to be structured once, then you can use special generated source code to easily write and read your structured data to and from a variety of data streams and using a variety of languages.

205 questions
0
votes
1 answer

.Net Protocol Buffers to JSON, JsonFormatReader class does not handle outmost curly braces?

I am working on using Google Protocol Buffers, using the protobuf-csharp-port library (https://code.google.com/p/protobuf-csharp-port/). The Google.ProtocolBuffers.Serialization class has a JsonFormatReader / JsonFormatWriter class, when I use them…
MaurGi
  • 1,698
  • 2
  • 18
  • 28
0
votes
1 answer

Protobuf 3.0.0-alpha1 install on windows. Virus?

I was just trying to install protobuf 3.0.0-alpha1 on windows using MSYS and MinGW, and it fails at checking if my C compiler works. Just as it fails each time, my Norton auto-block window comes up and says that it blocked a.exe because it contains…
guitar80
  • 716
  • 6
  • 19
-1
votes
1 answer

How does protobuf2 communicate with protobuf-net

In my project I use protobuf c for the server and protobuf-net for the client. But protobuf c cannot decode classes where the client uses the "ProtoInclude" attribute. This is the client code using protobuf-net [ProtoContract] public class…
YueYuHai
  • 1
  • 4
-1
votes
0 answers

Is there a way to unpack into a generic message in Protobuf?

I'm implementing a communication system using UDP style client and receiver in C++. My client will send multiple byte streams which represent serialized Protobuf messages. My receiver then receives this data without knowing the exact Protobuf…
-1
votes
1 answer

generate c++ source files from multiple proto files with import statements from directory structure in windows bat file

С++ project in MS Visual studio. When adding a new feature - support of the grpc, it looked quite logic to me 1) add grpc in the system 2) create a bat file with command-line call of protoc and call it in pre-build event to generate pb.cc/h files…
-1
votes
1 answer

How to read protobuf FileOptions in C++?

In the Google proto3 examples they show both global and nested custom options, including: extend google.protobuf.FileOptions { string my_file_option = 1001; } option (my_file_option) = "hello file!"; and extend google.protobuf.MessageOptions { …
Jabrwock
  • 1
  • 2
-1
votes
1 answer

install protobuf on MacOS 12.0.1 error: C compiler cannot create executables

I'm trying to install protobuf using these instructions: https://github.com/protocolbuffers/protobuf However when I run the local ./configure file with C++ installed on my local MacOS q@Q-336-MacBook-Pro:~/Downloads/protobuf-3.21.1> gcc…
letter Q
  • 14,735
  • 33
  • 79
  • 118
-1
votes
2 answers

How do you install the Protobuf Compiler (Protocol Buffers / protoc) on Mac M1 ARM?

Here is the link to the Protocol Buffers / Protobuf Github https://github.com/protocolbuffers/protobuf Should I follow the C++ installation instructions? There is no pre-built binary for Mac M1 ARM architecture. "Protocol Compiler InstallationThe…
Stephen Stilwell
  • 518
  • 1
  • 5
  • 17
-1
votes
1 answer

"object_detection.protos.SsdFeatureExtractor" has no field named "use_depthwise"

I want to train my tensorflow object detection model using ssd_mobilenet_v2_coco_2018_03_29.when i run the training step : python object_detection/train.py --logtostderr--train_dir=train …
Tamil Selvan S
  • 562
  • 8
  • 25
-1
votes
2 answers

Program cores in openssl when i link it with protobuf-generated file

I have such code in attribute constructor function "ConnectionInit" in file, written in C. SSL_load_error_strings(); SSL_library_init(); DefaultSSLConnectionContext = SSL_CTX_new(SSLv23_client_method ()); When i link it with protobuf-generated…
BHYCHIK
  • 108
  • 9
1 2 3
13
14