本文整理汇总了C++中common::Stream::set_int8方法的典型用法代码示例。如果您正苦于以下问题:C++ Stream::set_int8方法的具体用法?C++ Stream::set_int8怎么用?C++ Stream::set_int8使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类common::Stream
的用法示例。
在下文中一共展示了Stream::set_int8方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: serialize
int RespHeartMessage::serialize(common::Stream& output) const
{
int32_t ret = output.set_int32(status_);
if (common::TFS_SUCCESS == ret)
{
ret = output.set_int32(heart_interval_);
}
if (common::TFS_SUCCESS == ret)
{
ret = output.set_int32(max_mr_network_bandwith_mb_);
}
if (common::TFS_SUCCESS == ret)
{
ret = output.set_int32(max_rw_network_bandwith_mb_);
}
if (common::TFS_SUCCESS == ret)
{
ret = output.set_int8(ns_role_);
}
if (common::TFS_SUCCESS == ret)
{
ret = output.set_int8(enable_old_interface_);
}
if (common::TFS_SUCCESS == ret)
{
ret = output.set_int8(enable_version_check_);
}
if (common::TFS_SUCCESS == ret)
{
ret = output.set_int32(verify_index_reserved_space_ratio_);
}
return ret;
}
示例2: serialize
int DsCommitCompactBlockCompleteToNsMessage::serialize(common::Stream& output) const
{
int32_t ret = output.set_int64(seqno_);
if (common::TFS_SUCCESS == ret)
{
int64_t pos = 0;
ret = block_info_.serialize(output.get_free(), output.get_free_length(), pos);
}
if (common::TFS_SUCCESS == ret)
{
output.pour(block_info_.length());
ret = output.set_int8(result_.size());
}
if (common::TFS_SUCCESS == ret)
{
std::vector<std::pair<uint64_t, int8_t> >::const_iterator iter = result_.begin();
for (; iter != result_.end() && common::TFS_SUCCESS == ret; ++iter)
{
ret = output.set_int64(iter->first);
if (common::TFS_SUCCESS == ret)
{
ret = output.set_int8(iter->second);
}
}
}
return ret;
}
示例3: serialize
int ECMarshallingCommitMessage::serialize(common::Stream& output) const
{
int32_t ret = ECMarshallingMessage::serialize(output);
if (TFS_SUCCESS == ret)
{
ret = output.set_int8(status_);
}
return ret;
}
示例4: serialize
int RemoveBlockMessage::serialize(common::Stream& output) const
{
int32_t ret = output.set_int32(0);
if (common::TFS_SUCCESS == ret)
{
ret = output.set_int32(id_);
}
if (common::TFS_SUCCESS == ret)
{
output.set_int8(response_flag_);
}
if (common::TFS_SUCCESS == ret)
{
ret = output.set_int64(seqno_);
}
return ret;
}
示例5: serialize
int DumpPlanMessage::serialize(common::Stream& output) const
{
return output.set_int8(reserve_);
}
示例6: serialize
int GetTableFromRtsMessage::serialize(common::Stream& output) const
{
return output.set_int8(reserve_);
}