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

            address.CopyTo(bytes, 0);
            return(new System.Net.IPAddress(bytes));
        }
Exemple #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);
		}
Exemple #3
0
		public static bool TryCopy (IntPtr source, out In6Addr destination)
		{
			return ToIn6Addr (source, out destination) == 0;
		}
Exemple #4
0
		private static extern int ToIn6Addr (IntPtr source, out In6Addr destination);
Exemple #5
0
		public static bool TryCopy (ref In6Addr source, IntPtr destination)
		{
			return FromIn6Addr (ref source, destination) == 0;
		}
Exemple #6
0
		private static extern int FromIn6Addr (ref In6Addr source, IntPtr destination);
 public static bool TryCopy(IntPtr source, out In6Addr destination)
 {
     return(ToIn6Addr(source, out destination) == 0);
 }
 private static extern int ToIn6Addr(IntPtr source, out In6Addr destination);
 public static bool TryCopy(ref In6Addr source, IntPtr destination)
 {
     return(FromIn6Addr(ref source, destination) == 0);
 }
Exemple #10
0
 private static extern int FromIn6Addr(ref In6Addr source, IntPtr destination);