[protobuf] Problem with has_bits on 64 bit Windows only

2012-02-17 Thread Jim Hunziker
I'm compiling a .proto file in both 64 bit windows and in 64 bit linux (with version 2.4.1 of protobuf). The resulting .pb.h file is fine in Linux, but the Windows 7 X64 version is very broken with respect to has_bits. The problem only occurs when two bytes of has_bits are required for tags. .prot

[protobuf] ParseFromArray or ArrayInputStream+ParseFromZeroCopyStream?

2011-10-11 Thread Jim Hunziker
Is there a difference between using ParseFromArray and using ParseFromZeroCopyStream on an ArrayInputStream? For a plain buffer of data, is the behavior different when using these two methods? Also, is it necessary to call Next() in a loop when using ArrayInputStream+ParseFromZeroCopyStream? --