Hi,
I am wondering about the best way of forwarding received protocol
buffer messages from one entity to another without having to parse the
entire message just to serialize it again.
My scenario is the following: I have a process A connected to process
B using local IPC. B is in turn connected
Hi there,
I recently started working with Protocol Buffers. I used the
Addressbook Example to become acquainted with the PBs. (http://
code.google.com/intl/de-DE/apis/protocolbuffers/docs/
javatutorial.html)
The only difference is that I use an OutputStream to write the address
book instance (in
Thanks a lot Kenton. I went for the second option. If you are storing
a lot of data in pb format, wrapping around with an outer message
makes you parse all at once. it is like DOM vs SAX for XML I guess.
thanks again!
p.
On Oct 5, 10:17 pm, Kenton Varda ken...@google.com wrote:
The easiest
This whole topic - how to save multiple messages to a single stream -
comes up frequently enough that I'm starting to think there should be
a more flexible answer than what's in the FAQ. Declaring a one-byte
End of Object seems like it would be one way to handle it. Whatever
it is, it should
On Wed, Oct 7, 2009 at 5:46 AM, villintehaspam villintehas...@gmail.comwrote:
I am wondering about the best way of forwarding received protocol
buffer messages from one entity to another without having to parse the
entire message just to serialize it again.
It looks like you've figured out
Here's just a taste of what you'll find out... How to go from zero to
$1,000 in 7 days
http://www.easyinternetbiz.net/index.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Protocol Buffers group.
To post to this
The value returned by Message::ByteSize() does not match the actually
number of bytes that are consumed after writing a message to a
stream. Example:
some_message m;
/* ... populate m ... */
size_t len = m.ByteSize();
int pos =
Here you go...attached is an example that fails quite reliably (for me).
Compile like so:
mkdir build
cd build
cmake ../
make
./test-pb
On Wed, Oct 7, 2009 at 4:49 PM, Kenton Varda ken...@google.com wrote:
ByteSize() definitely returns the right value -- if it didn't, tons of
stuff would be
This example is too big for me to debug. Can't you reproduce this with a
10-line program + proto file?
On Wed, Oct 7, 2009 at 6:11 PM, Brenden Matthews bren...@diddyinc.comwrote:
Oops, had some bad math in that last sample. This is more correct (but
still fails).
On Wed, Oct 7, 2009 at
On Wed, Oct 7, 2009 at 6:48 PM, Henner Zeller h.zel...@acm.org wrote:
Still haven't run it (I only seem to have a too old cmake; a simple
Makefile with a .proto and .cc file showing the problem would be
better. Please strip down the example if someone should help debugging
it ;) )
Anyway,
10 matches
Mail list logo