[protobuf] Re: Serialization of primitive types

2011-06-20 Thread gabor.dicso
Hello, thanks for all the responses. Sorry if my goals were not perfectly clear. To put it simple, what I am looking for is essentially something like byte[] intBytes = ProtoBuf.intToBytes(100); / int i = ProtoBuf.readInt(bytesOfSerializedObject); so that the values are serialized and deserialized

Re: [protobuf] Re: Serialization of primitive types

2011-06-20 Thread Jason Hsueh
I didn't really go through the whole thread, so I might have missed something, but it's not clear to me how you plan to distinguish different values in the data stream. But protobuf's serialization primitives are in CodedInputStream/CodedOutputStream. On Mon, Jun 20, 2011 at 8:49 AM, gabor.dicso

[protobuf] Undefined references to `google::protobuf::internal::kEmptyString'

2011-06-20 Thread Greg Corradini
Hello, I'm trying to compile protobuf-c-0.15 on Ubuntu-10.10. I've been running into this undefined reference problem and have come up short on answers thought searches. Any ideas from the dump below what I should look into? /bin/bash ../../libtool --tag=CXX --mode=link g++ -g -O2 -pthread -

Re: [protobuf] How to convert Descriptors.Descriptor to Java class name?

2011-06-20 Thread Pherl Liu
Quoted from our internal discussion by Kenton: You should build a MapDescriptor, Message upfront, mapping every descriptor you care about to the corresponding default instance. Avoid using Class objects because that will make your code incompatible with DynamicMessage. Using default instances