本文整理汇总了C++中ACE_CString::fast_rep方法的典型用法代码示例。如果您正苦于以下问题:C++ ACE_CString::fast_rep方法的具体用法?C++ ACE_CString::fast_rep怎么用?C++ ACE_CString::fast_rep使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ACE_CString
的用法示例。
在下文中一共展示了ACE_CString::fast_rep方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: cleanup
void cleanup(PersistenceUpdater::ALLOCATOR* allocator)
{
if (name.length() > 0)
{
char* strMemory = const_cast<char*>(name.fast_rep());
name.fast_clear();
allocator->free(strMemory);
}
if (dataType.length() > 0)
{
char* strMemory = const_cast<char*>(dataType.fast_rep());
dataType.fast_clear();
allocator->free(strMemory);
}
allocator->free(topicQos.second.second);
}
示例2:
void
CORBA::ServerRequest::gateway_exception_reply (ACE_CString &raw_exception)
{
// This defaults to 1, but just to be safe...
this->orb_server_request_.argument_flag (true);
// This reply path handles only user exceptions.
this->orb_server_request_.reply_status (GIOP::USER_EXCEPTION);
this->orb_server_request_.init_reply ();
// We know nothing about this exception, so we marshal it as a block
// of bytes. The outgoing stream's byte order has already been matched
// to the original source of the reply.
this->orb_server_request_.outgoing ()->write_octet_array (
reinterpret_cast<const CORBA::Octet *> (raw_exception.fast_rep ()),
static_cast<CORBA::ULong> (raw_exception.length () + ACE_CDR::MAX_ALIGNMENT)
);
// This will prevent the marshaling of any parameters into this reply.
this->sent_gateway_exception_ = true;
this->orb_server_request_.tao_send_reply ();
}