Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for isCompatIPv4Address (0.07 seconds)

  1. android/guava/src/com/google/common/net/InetAddresses.java

       *
       * @param ip {@link Inet6Address} to be examined for embedded IPv4 compatible address format
       * @return {@code true} if the argument is a valid "compat" address
       */
      public static boolean isCompatIPv4Address(Inet6Address ip) {
        if (!ip.isIPv4CompatibleAddress()) {
          return false;
        }
    
        byte[] bytes = ip.getAddress();
        if ((bytes[12] == 0)
            && (bytes[13] == 0)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 47.7K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/net/InetAddressesTest.java

        for (String nonCompatAddress : nonCompatAddresses) {
          InetAddress ip = InetAddresses.forString(nonCompatAddress);
          assertFalse(InetAddresses.isCompatIPv4Address((Inet6Address) ip));
          assertThrows(
              "IllegalArgumentException expected for '" + nonCompatAddress + "'",
              IllegalArgumentException.class,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 36.3K bytes
    - Click Count (0)
Back to Top