I make a binary protobuf files in linux and it can well be parsed in linux,


in windows 
but after i copy this file to windows, it can be parsed but it is not 
complete, it just has some information,  using mycode to parse.
the code is just as below:
int fd = open(filename, O_RDONLY);


  ZeroCopyInputStream* raw_input = new FileInputStream(fd);
  CodedInputStream* coded_input = new CodedInputStream(raw_input);
  coded_input->SetTotalBytesLimit(kProtoReadBytesLimit, 536870912);
  bool success = proto->ParseFromCodedStream(coded_input);

but I use protoc.exe to parse it to the text format, it is parsed 
successfully with complete message.
if i parse this text format, it can be parse with complete message .

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to