clarifying a comment

This commit is contained in:
Gregor Maier 2011-06-09 16:34:25 -07:00
parent ac2b507480
commit 6cd6074ab4

View file

@ -160,8 +160,9 @@ public:
// (which means that we will truncate the message). // (which means that we will truncate the message).
bool AddToExpected(int64_t delta) { expected += delta; return !(expected>maxsize); } bool AddToExpected(int64_t delta) { expected += delta; return !(expected>maxsize); }
// Consume a chunk of data. data and len will be adjustes accordingly. // Consume a chunk of input data (pointed to by data, up len in size).
// Returns true if we "exptected" bytes have been processed, i.e., returns // data and len will be adjustes accordingly.
// Returns true if "exptected" bytes have been processed, i.e., returns
// true when we don't expect any more data. // true when we don't expect any more data.
bool ConsumeChunk(const u_char*& data, int& len); bool ConsumeChunk(const u_char*& data, int& len);