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