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; }
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; }
int ECMarshallingCommitMessage::serialize(common::Stream& output) const { int32_t ret = ECMarshallingMessage::serialize(output); if (TFS_SUCCESS == ret) { ret = output.set_int8(status_); } return ret; }
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; }
int MasterAndSlaveHeartMessage::serialize(common::Stream& output) const { int64_t pos = 0; int32_t ret = ns_identity_.serialize(output.get_free(), output.get_free_length(), pos); if (common::TFS_SUCCESS == ret) { output.pour(ns_identity_.length()); } if (common::TFS_SUCCESS == ret) { ret = output.set_int64(lease_id_); } if (common::TFS_SUCCESS == ret) { ret = output.set_int8(keepalive_type_); } return ret; }
int DumpPlanMessage::serialize(common::Stream& output) const { return output.set_int8(reserve_); }
int GetTableFromRtsMessage::serialize(common::Stream& output) const { return output.set_int8(reserve_); }