- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for getCompatIPv4Address (0.13 seconds)
-
android/guava/src/com/google/common/net/InetAddresses.java
* @return {@link Inet4Address} of the embedded IPv4 address * @throws IllegalArgumentException if the argument is not a valid IPv4 compatible address */ public static Inet4Address getCompatIPv4Address(Inet6Address ip) { checkArgument( isCompatIPv4Address(ip), "Address '%s' is not IPv4-compatible.", toAddrString(ip)); return getInet4Address(Arrays.copyOfRange(ip.getAddress(), 12, 16)); }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) -
guava-tests/test/com/google/common/net/InetAddressesTest.java
assertThrows( "IllegalArgumentException expected for '" + nonCompatAddress + "'", IllegalArgumentException.class, () -> InetAddresses.getCompatIPv4Address((Inet6Address) ip)); } ImmutableSet<String> validCompatAddresses = ImmutableSet.of("::1.2.3.4", "::102:304"); String compatStr = "1.2.3.4"; InetAddress compat = InetAddresses.forString(compatStr);
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)