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; }
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; }
int ECMarshallingCommitMessage::deserialize(common::Stream& input) { int32_t ret = ECMarshallingMessage::deserialize(input); if (TFS_SUCCESS == ret) { ret = input.get_int8(&status_); } return ret; }
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; }
int MasterAndSlaveHeartMessage::deserialize(common::Stream& input) { int64_t pos = 0; int32_t ret = ns_identity_.deserialize(input.get_data(), input.get_data_length(), pos); if (common::TFS_SUCCESS == ret) { input.drain(ns_identity_.length()); } if (common::TFS_SUCCESS == ret) { if (input.get_data_length() > 0) ret = input.get_int64(&lease_id_); } if (common::TFS_SUCCESS == ret) { if (input.get_data_length() > 0) ret = input.get_int8(&keepalive_type_); } return ret; }
int DumpPlanMessage::deserialize(common::Stream& input) { return input.get_int8(&reserve_); }
int GetTableFromRtsMessage::deserialize(common::Stream& input) { return input.get_int8(&reserve_); }