本文整理汇总了C++中UUID::deserialize方法的典型用法代码示例。如果您正苦于以下问题:C++ UUID::deserialize方法的具体用法?C++ UUID::deserialize怎么用?C++ UUID::deserialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UUID
的用法示例。
在下文中一共展示了UUID::deserialize方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: deserialize
/*
* for future use
*
*
*/
void SthenoHeader::deserialize(InputStream& inputStream)
throw (SerializationException&) {
inputStream.read_ulong(m_magic);
//ACE_DEBUG((LM_DEBUG,ACE_TEXT("(%t|%T)SthenoHeader::deserialize: magic=%d buffer_size=%l\n"), m_magic,inputStream.length()));
inputStream.read_ushort(m_protocol);
inputStream.read_octet(m_protocolVersionMajor);
inputStream.read_octet(m_protocolVersionMinor);
//ACE_DEBUG((LM_DEBUG,ACE_TEXT("(%t|%T)SthenoHeader::deserialize: before SRC_PID buffer_size(%l)\n"),inputStream.length()));
UUID* srcPID = new UUID();
srcPID->deserialize(inputStream);
//ACE_DEBUG((LM_DEBUG,ACE_TEXT("(%t|%T)SthenoHeader::deserialize: after SRC_PID buffer_size(%l)\n"),inputStream.length()));
m_srcPID.reset(srcPID);
UUID* srcFID = new UUID();
//ACE_DEBUG((LM_DEBUG,ACE_TEXT("(%t|%T)SthenoHeader::deserialize: before SRC_FID buffer_size=%l\n"),inputStream.length()));
srcFID->deserialize(inputStream);
m_srcFID.reset(srcFID);
UUID* dstPID = new UUID();
//ACE_DEBUG((LM_DEBUG,ACE_TEXT("(%t|%T)SthenoHeader::deserialize: before DST_PID buffer_size=%l\n"),inputStream.length()));
dstPID->deserialize(inputStream);
//ACE_DEBUG((LM_DEBUG,ACE_TEXT("(%t|%T)SthenoHeader::deserialize: after DST_PID buffer_size=%l\n"),inputStream.length()));
m_dstPID.reset(dstPID);
UUID* dstFID = new UUID();
dstFID->deserialize(inputStream);
//ACE_DEBUG((LM_DEBUG,ACE_TEXT("(%t|%T)SthenoHeader::deserialize: before DST_FID buffer_size=%l\n"),inputStream.length()));
m_dstFID.reset(dstFID);
/*ACE_DEBUG((LM_DEBUG,ACE_TEXT("(%t|%T)SthenoHeader::deserialize: (%s,%s) (%s,%s) buffer_size=%lu\n",
srcPID->toString().c_str(),srcFID->toString().c_str(),
dstPID->toString().c_str(),dstFID->toString().c_str(),inputStream.length());*/
inputStream.read_ushort(m_messageType);
//ACE_DEBUG((LM_DEBUG,ACE_TEXT("(%t|%T)SthenoHeader::deserialize: type(%d) buffer_size(%lu)\n",
// m_messageType,inputStream.length());
inputStream.read_ulong(m_requestID);
//ACE_DEBUG((LM_DEBUG,ACE_TEXT("(%t|%T)SthenoHeader::deserialize: m_requestID=%d buffer_size=%lu\n", m_requestID,inputStream.length());
inputStream.read_ulong(m_messageSize);
//ACE_DEBUG((LM_DEBUG,ACE_TEXT("(%t|%T)SthenoHeader::deserialize: MessageSize=%d buffer_size=%lu\n",
//m_messageSize,inputStream.length());
/*ACE_DEBUG((LM_DEBUG,ACE_TEXT("(%t|%T)SthenoHeader::deserialize: type(%d) request_id(%d) size(%d) (%s,%s) (%s,%s) buffer_size=%lu\n",
m_messageType,m_requestID,m_messageSize,
srcPID->toString().c_str(),srcFID->toString().c_str(),
dstPID->toString().c_str(),dstFID->toString().c_str(),inputStream.length());*/
}