diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-19 18:01:29 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-19 18:01:29 +0000 |
commit | e84c19db4894528c9ec67261e0c2af6898f75ae9 (patch) | |
tree | 554b7c742286441e7c9bb70fa71e61d2472124c0 /ace/Message_Block.i | |
parent | 4f8b88cf11379814be536f461b52a9205f3f49ff (diff) | |
download | ATCD-e84c19db4894528c9ec67261e0c2af6898f75ae9.tar.gz |
ChangeLogTag:Thu Aug 19 12:59:56 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'ace/Message_Block.i')
-rw-r--r-- | ace/Message_Block.i | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/ace/Message_Block.i b/ace/Message_Block.i index 801e24b1d50..7d384afe5f9 100644 --- a/ace/Message_Block.i +++ b/ace/Message_Block.i @@ -10,21 +10,6 @@ ACE_Message_Block::data_block (void) const return this->data_block_; } -ACE_INLINE ACE_Data_Block * -ACE_Message_Block::replace_data_block (ACE_Data_Block *db) -{ - ACE_TRACE ("ACE_Message_Block::replace_data_block"); - ACE_Data_Block *old = this->data_block_; - this->data_block_ = db; - - // Set the read and write pointers in the <Message_Block> to point - // to the buffer in the <ACE_Data_Block>. - this->rd_ptr (this->data_block ()->base ()); - this->wr_ptr (this->data_block ()->base ()); - - return old; -} - // This function must comes before ACE_Message_Block::reference_count // to avoid a g++ warning. ACE_INLINE int @@ -313,6 +298,21 @@ ACE_Message_Block::space (void) const return this->end () - this->wr_ptr (); } +ACE_INLINE ACE_Data_Block * +ACE_Message_Block::replace_data_block (ACE_Data_Block *db) +{ + ACE_TRACE ("ACE_Message_Block::replace_data_block"); + ACE_Data_Block *old = this->data_block_; + this->data_block_ = db; + + // Set the read and write pointers in the <Message_Block> to point + // to the buffer in the <ACE_Data_Block>. + this->rd_ptr (this->data_block ()->base ()); + this->wr_ptr (this->data_block ()->base ()); + + return old; +} + ACE_INLINE void ACE_Message_Block::cont (ACE_Message_Block *cont_msg) { |