diff options
Diffstat (limited to 'TAO/tao/GIOP_Message_Lite.i')
-rw-r--r-- | TAO/tao/GIOP_Message_Lite.i | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/TAO/tao/GIOP_Message_Lite.i b/TAO/tao/GIOP_Message_Lite.i index 7fbff4b3806..ca0908bbcf6 100644 --- a/TAO/tao/GIOP_Message_Lite.i +++ b/TAO/tao/GIOP_Message_Lite.i @@ -1,43 +1 @@ //$Id$ - - -ACE_INLINE -TAO_GIOP_Message_Lite::~TAO_GIOP_Message_Lite (void) -{ - // Explicitly call the destructor of the output CDR first. They need - // the allocators during destruction. - delete this->output_; - - // Then call the destructor of our allocators - if (this->cdr_dblock_alloc_ != 0) - this->cdr_dblock_alloc_->remove (); - // delete this->cdr_dblock_alloc_; - - if (this->cdr_buffer_alloc_ != 0) - this->cdr_buffer_alloc_->remove (); - // delete this->cdr_buffer_alloc_; -} - - -ACE_INLINE int -TAO_GIOP_Message_Lite::parse_header (TAO_GIOP_Message_State *state) -{ - // Get the read pointer - char *buf = state->cdr.rd_ptr (); - - // @@ Bala: i added the following comment, does it make sense? - // In GIOPLite the version, byte order info, etc. are hardcoded, and - // not transmitted over the wire. - state->byte_order = TAO_ENCAP_BYTE_ORDER; - state->giop_version.major = TAO_DEF_GIOP_MAJOR; - state->giop_version.minor = TAO_DEF_GIOP_MINOR; - - // Get the message type. - state->message_type = buf[TAO_GIOP_LITE_MESSAGE_TYPE_OFFSET]; - - state->cdr.reset_byte_order (state->byte_order); - // The first bytes are the length of the message. - state->cdr.read_ulong (state->message_size); - - return 0; -} |