private static Proto.Msg.UniqueAddress UniqueAddressToProto(UniqueAddress uniqueAddress) { var message = new Proto.Msg.UniqueAddress(); message.Address = AddressToProto(uniqueAddress.Address); message.Uid = (uint)uniqueAddress.Uid; return(message); }
private static UniqueAddress UniqueAddressFrom(Proto.Msg.UniqueAddress uniqueAddressProto) { return(new UniqueAddress(AddressFrom(uniqueAddressProto.Address), (int)uniqueAddressProto.Uid)); }