[protobuf] Re: buffer sizes when sending messages from c++ to java

2014-07-26 Thread Anthony Seo
So how do you change the code: ZeroCopyOutputStream* raw_output = new ArrayOutputStream(snap_buf2, snap1.ByteSize()+numBytesForDelim); //Here? CodedOutputStream* coded_output = new CodedOutputStream(raw_output); coded_output->WriteVarint32(snap1.ByteSize()); //Here? snap1.Serialize

[protobuf] Java and C++ using CodedOutputStram

2014-07-26 Thread Anthony Seo
Hi, I don't see my post, so I am doing again. I want my Java code to receiving a simple message that sent by C++ My C++: TestMsg *pbTestMsg = new TestMsg(); pbTestMsg->set_acid(""); pbTestMsg->set_name("Anthony"); int varIntSize = google::protobuf::io:: CodedOutputStream::V

[protobuf] Receiving Java Sending C++ using CodedOutputStream

2014-07-26 Thread Anthony Seo
Hi, I don't see my post, so I am doing again. I want my Java code to receiving a simple message that sent by C++ My C++: TestMsg *pbTestMsg = new TestMsg(); pbTestMsg->set_acid(""); pbTestMsg->set_name("Anthony"); int varIntSize = google::protobuf::io:: CodedOutputStream::V