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
1
vote
0 answers

Getting segfault due to string data type variable in PROTOBUF server and client communication through sockets on recv end in c

I'm new in protobuf When I am sending a protobuf variable through socket communication on recv end I am trying to display the string variable of protobuf I got segmentation in this remaining Data type other than String they are working fine but…
Nanetta
  • 101
  • 13
1
vote
2 answers

Compiling proto2 syntax file with proto3 compiler

I have a proto file written in proto2 syntax. I am compiling this proto file using proto3 compiler. Although it bulids successfully, it shows the following error on runtime. Can someone please help me. [libprotobuf FATAL…
danish sodhi
  • 1,793
  • 4
  • 21
  • 31
1
vote
1 answer

protoc compiler error out of range for enum value 0x88000000

In proto file I have one enum like I am converting it c++ code It throws error Integer out of range for field(_G,_P,_L) . In https://developers.google.com/protocol-buffers/docs/proto3#enum says "Enumerator constants must be in the range of a…
1
vote
1 answer

How to know size of protobuf message incoming from server?

I have a server-client application. The server is in C++ while the client is in C#. The server might be running on a Linux instance while the client is in Windows. Hence we cannot make any assumptions about the architecture and hence endianness. I…
Ayush Ranjan
  • 59
  • 12
1
vote
1 answer

Tensorflow build from source, cannot include contrib

I'm building TF from source and have no trouble including contrib in python. I get a segfault when I try to access this module with the following error: error: _single_image_random_dot_stereograms.so debug map object file…
1
vote
0 answers

Schema design in avro and protobufs

Currently a lot of data that we store are in the form of avro records , or serialized protobuf bytes. I want to see how can i design an efficient schema for my data to improve reading/parsing serializing speed by data pipelines. For example consider…
user179156
  • 841
  • 9
  • 31
1
vote
1 answer

Manipulate data structures in protobuf using c++

I want to modify the data structure defined in protobuf, the proto is like this: message DoubleMap { map double_map = 1 } message DoubleVector { map double_vector = 1 } message Data { repeated…
superd
  • 305
  • 4
  • 10
1
vote
0 answers

Add protbuf 3.3.0 to Make file

I use Ubuntu 16.04 vith protobufer 2.6.1, but i want to build caffe required for faster_rcnn_cplusplus via protobuffer 3.3.0 which I build from GitHub sources. As I want to install it locally to some folder and use it folder only for 1 program, I…
1
vote
0 answers

Adding header files protobuf to CPP

I am using protobuf to generate cpp code. In my imagereader.prototxt node { name: "Image Reader"; type: ImageReader; name: "path"; type: pb_string; #value: "${DIR_DATA}/images/"; value:…
infoclogged
  • 3,641
  • 5
  • 32
  • 53
1
vote
1 answer

Can Google protobuf be used for communication between C and Java services in android?

We have a legacy protocol stack written in C with c-protobuf interface and C++ wrapper API that need to be ported to Android and develop java service with AIDL interfaces. So here are the questions, Can we remove C++ interface and have Java service…
1
vote
1 answer

How to build protobuf-c in windows using mingw?

I can successfully build protobuf in Windows, it result in three .lib files, but don't know how to build protobuf-c in Windows, there are no documents about it.
maxzlf
  • 11
  • 6
1
vote
1 answer

Protobuf-2.6.1 compile error on Solaris 10 SPARC 64

When trying to compile Protobuf-2.6.1 on Solaris 10 SPARC 64, I get: ./google/protobuf/stubs/once.h: In function `void google::protobuf::GoogleOnceInit(google::protobuf::ProtobufOnceType*, void (*)())': ./google/protobuf/stubs/once.h:125: error:…
翟桂锋
  • 158
  • 1
  • 7
1
vote
1 answer

DataType equivalent in Protobuf

I know that the data-types supported by protobuf-c are restricted to the ones mentioned here , but what can be a good protobuf-c equivalent to the following data types in C time_t, int8_t, int16_t, uint8_t, uint16_t, ushort
brokendreams
  • 827
  • 2
  • 10
  • 29
1
vote
2 answers

Parse sequences of protobuf messages from continguous chunks of fixed sized byte buffer

I've been struggling with this for two days straight with my poor knowledge with C++. What I need to do is parsing sequences of messages using protobuf C++ API from a big file, a file that may contain millions of such messages. Reading straight from…
Superziyi
  • 609
  • 1
  • 9
  • 30
1
vote
2 answers

Protobuf : C++ string with null characters inside

I am dealing with a buffer in memory which is being read as protobuf. I need to deserialize it. The content of this protobuf contains a string which may or may not have null character inside the string. For example, the string could be something…
Santanu C
  • 1,362
  • 3
  • 20
  • 38