3 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
7 TAO_Queued_Data::replace_data_block (ACE_Message_Block &mb)
9 size_t const newsize = ACE_CDR::total_length (&mb, 0) + ACE_CDR::MAX_ALIGNMENT;
11 ACE_Data_Block *db = mb.data_block ()->clone_nocopy ();
13 if (db->size (newsize) == -1)
16 ACE_Message_Block tmp (db);
17 ACE_CDR::mb_align (&tmp);
19 tmp.copy (mb.rd_ptr (), mb.length());
20 mb.data_block (tmp.data_block ()->duplicate ());
22 mb.rd_ptr (tmp.rd_ptr ());
23 mb.wr_ptr (tmp.wr_ptr ());
25 // Remove the DONT_DELETE flags from mb
26 mb.clr_self_flags (ACE_Message_Block::DONT_DELETE);
30 TAO_Queued_Data::TAO_Queued_Data (ACE_Allocator *alloc)
37 TAO_Queued_Data::TAO_Queued_Data (ACE_Message_Block *mb,
46 TAO_Queued_Data::TAO_Queued_Data (const TAO_Queued_Data &qd)
47 : msg_block_ (qd.msg_block_->duplicate ()),
48 missing_data_ (qd.missing_data_),
50 allocator_ (qd.allocator_)
55 TAO_Queued_Data::missing_data () const
57 return this->missing_data_;
61 TAO_Queued_Data::missing_data (size_t data)
63 this->missing_data_ = data;
66 ACE_INLINE TAO_GIOP_Message_Version const &
67 TAO_Queued_Data::giop_version () const
69 return this->state_.giop_version ();
72 ACE_INLINE CORBA::Octet
73 TAO_Queued_Data::byte_order () const
75 return this->state_.byte_order ();
78 ACE_INLINE CORBA::Boolean
79 TAO_Queued_Data::more_fragments () const
81 return this->state_.more_fragments ();
84 ACE_INLINE GIOP::MsgType
85 TAO_Queued_Data::msg_type () const
87 return this->state_.message_type ();
90 ACE_INLINE TAO_Queued_Data *
91 TAO_Queued_Data::next () const
97 TAO_Queued_Data::next (TAO_Queued_Data* qd)
102 ACE_INLINE ACE_Message_Block *
103 TAO_Queued_Data::msg_block () const
105 return this->msg_block_;
109 TAO_Queued_Data::msg_block (ACE_Message_Block *mb)
111 this->msg_block_ = mb;
115 TAO_Queued_Data::state (const TAO_GIOP_Message_State& state)
117 this->state_ = state;
120 ACE_INLINE const TAO_GIOP_Message_State&
121 TAO_Queued_Data::state () const
126 TAO_END_VERSIONED_NAMESPACE_DECL