On the page
https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.io.coded_stream;
there is an example at the top of the page which contains code that appears
to show a user how to create and serialize a message to a file. However the
flags to open the file lack the
I'm trying to do the following:
// Set up:
Message* foo = new Foo;
const Descriptor* descriptor = foo-GetDescriptor();
const FieldDescriptor* my_int_field = descriptor-FindFieldByName(my_int32
);
foo-ParseFromString(data);
const Reflection* reflection = foo-GetReflection();
// This fails:
Thanks Zach. The documentation is generated from comments in the source
code coded_stream.h
https://github.com/google/protobuf/blob/master/src/google/protobuf/io/coded_stream.h.
Could you help send us a patch to fix this problem? (Or file an issue on
the github site