diff options
author | jxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-01-27 23:50:57 +0000 |
---|---|---|
committer | jxh <jxh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-01-27 23:50:57 +0000 |
commit | fc602c7e0254165a8f1a3d460d6e0fffc8b5a4a2 (patch) | |
tree | c4ebbd0668f97c30825b4fa5a74d27cc6a9861b7 /ace/Message_Block.i | |
parent | b52c1239088395febb8adb84b7cac722484e5bfb (diff) | |
download | ATCD-fc602c7e0254165a8f1a3d460d6e0fffc8b5a4a2.tar.gz |
Added a ACE_Message_Block::reset() method that puts the
rd_ptr() and wr_ptr() back to the beginning of the message block.
Diffstat (limited to 'ace/Message_Block.i')
-rw-r--r-- | ace/Message_Block.i | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ace/Message_Block.i b/ace/Message_Block.i index fc076f55a0e..99b36a8a8d4 100644 --- a/ace/Message_Block.i +++ b/ace/Message_Block.i @@ -319,6 +319,14 @@ ACE_Message_Block::wr_ptr (size_t n) this->wr_ptr_ += n; } +ACE_INLINE void +ACE_Message_Block::reset (void) +{ + ACE_TRACE ("ACE_Message_Block::reset"); + this->rd_ptr_ = 0; + this->wr_ptr_ = 0; +} + ACE_INLINE size_t ACE_Message_Block::space (void) const { |