Saptarshi Guha
unread,Dec 12, 2009, 1:50:05 PM12/12/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Protocol Buffers
Hello,
I am using Protocol Buffers to serialize some data.
To begin with I do realize that I shouldn't be using PB for
serializing very large messages, but given that I am, I have to deal
with these messages.
E.g I have a message of 381MB, so naturally I get this error when parsing:
libprotobuf ERROR google/protobuf/io/coded_stream.cc:196] A protocol
message was rejected because it was too big (more than 67108864
bytes). To increase the limit (or to disable these warnings), see
CodedInputStream::SetTotalBytesLimit() in
google/protobuf/io/coded_stream.h.
I viewed the header file and see what I have to do next. I'll fix my
code soon, till then:
My program redirects standard error(and output) and re-encodes
functions that write to these streams. However writing to s.out and
s.err are through special functions. PB, does not use my functions.
Other libraries (and I only use PB) writing to s.err and s.out can
adversely affect my program.
Q. Is there a flag I can set to not display the warning? i.e silently
fail? I'm not using CodedInputstream, instead I use ParseFromArray (i
have read in the bytes with m own functions)
Regards
Saptarshi