예제 #1
0
        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);
        }
예제 #2
0
 private static UniqueAddress UniqueAddressFrom(Proto.Msg.UniqueAddress uniqueAddressProto)
 {
     return(new UniqueAddress(AddressFrom(uniqueAddressProto.Address), (int)uniqueAddressProto.Uid));
 }