Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
neverchanje committed May 16, 2019
1 parent 0e8c060 commit 88c4ce0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/dsn/tool-api/message_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class message_reader
// discard read data
void truncate_read() { _buffer_occupied = 0; }

// mark the tailing `sz` of bytes are consumed and discardable.
void consume_buffer(size_t sz)
{
_buffer = _buffer.range(sz);
Expand Down

0 comments on commit 88c4ce0

Please sign in to comment.