示例#1
0
        public static System.Net.IPAddress ToIPAddress(In6Addr address)
        {
            var bytes = new byte[16];

            address.CopyTo(bytes, 0);
            return(new System.Net.IPAddress(bytes));
        }
示例#2
0
		public static System.Net.IPAddress ToIPAddress (In6Addr address)
		{
			var bytes = new byte[16];
			address.CopyTo (bytes, 0);
			return new System.Net.IPAddress (bytes);
		}
示例#3
0
		public static bool TryCopy (IntPtr source, out In6Addr destination)
		{
			return ToIn6Addr (source, out destination) == 0;
		}
示例#4
0
		private static extern int ToIn6Addr (IntPtr source, out In6Addr destination);
示例#5
0
		public static bool TryCopy (ref In6Addr source, IntPtr destination)
		{
			return FromIn6Addr (ref source, destination) == 0;
		}
示例#6
0
		private static extern int FromIn6Addr (ref In6Addr source, IntPtr destination);
示例#7
0
 public static bool TryCopy(IntPtr source, out In6Addr destination)
 {
     return(ToIn6Addr(source, out destination) == 0);
 }
示例#8
0
 private static extern int ToIn6Addr(IntPtr source, out In6Addr destination);
示例#9
0
 public static bool TryCopy(ref In6Addr source, IntPtr destination)
 {
     return(FromIn6Addr(ref source, destination) == 0);
 }
示例#10
0
 private static extern int FromIn6Addr(ref In6Addr source, IntPtr destination);