CodedInputStream::SetTotalBytesLimit description fix

pull/3743/head
Pavel 8 years ago
parent c4083bb3d1
commit 38fd94e184
  1. 6
      src/google/protobuf/io/coded_stream.h

@ -396,9 +396,9 @@ class LIBPROTOBUF_EXPORT CodedInputStream {
// Message::ParseFromString(). In this case, you will need to change // Message::ParseFromString(). In this case, you will need to change
// your code to instead construct some sort of ZeroCopyInputStream // your code to instead construct some sort of ZeroCopyInputStream
// (e.g. an ArrayInputStream), construct a CodedInputStream around // (e.g. an ArrayInputStream), construct a CodedInputStream around
// that, then call Message::ParseFromCodedStream() instead. Then // that, then you can adjust the limit. Then call
// you can adjust the limit. Yes, it's more work, but you're doing // Message::ParseFromCodedStream() instead. Yes, it's more work, but
// something unusual. // you're doing something unusual.
void SetTotalBytesLimit(int total_bytes_limit, int warning_threshold); void SetTotalBytesLimit(int total_bytes_limit, int warning_threshold);
// The Total Bytes Limit minus the Current Position, or -1 if there // The Total Bytes Limit minus the Current Position, or -1 if there

Loading…
Cancel
Save