blob: a83166e89876d6b2a73d691fc73c76c4fd63d12f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// $Id$
#include "ace/OS_Memory.h"
ACE_INLINE
Safe_InputCDR::Safe_InputCDR(const char* buf, int size)
: TAO_InputCDR((ACE_Message_Block*)0)
{
if (ACE_ptr_align_binary(buf, ACE_CDR::MAX_ALIGNMENT) != buf) {
ACE_CDR::grow(&start_,size);
this->start_.copy(buf, size);
}
else {
this->start_.init(buf,size);
this->start_.wr_ptr(size);
}
}
|