本文整理汇总了C++中ThriftBuffer类的典型用法代码示例。如果您正苦于以下问题:C++ ThriftBuffer类的具体用法?C++ ThriftBuffer怎么用?C++ ThriftBuffer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ThriftBuffer类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: sendImpl
void DThreadInfo::sendImpl(ThriftBuffer &thrift) {
TRACE(2, "DThreadInfo::sendImpl\n");
thrift.write(m_id);
thrift.write(m_desc);
thrift.write(m_type);
thrift.write(m_url);
}
示例2: recvImpl
void DThreadInfo::recvImpl(ThriftBuffer &thrift) {
TRACE(2, "DThreadInfo::recvImpl\n");
thrift.read(m_id);
thrift.read(m_desc);
thrift.read(m_type);
thrift.read(m_url);
}
示例3: recvImpl
void DFunctionInfo::recvImpl(ThriftBuffer &thrift) {
thrift.read(m_namespace);
thrift.read(m_class);
thrift.read(m_function);
}
示例4: sendImpl
void DFunctionInfo::sendImpl(ThriftBuffer &thrift) {
thrift.write(m_namespace);
thrift.write(m_class);
thrift.write(m_function);
}