- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for sliceArray (0.05 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt
* * https://en.wikipedia.org/wiki/IPv6#IPv4-mapped_IPv6_addresses */ internal fun canonicalizeInetAddress(address: ByteArray): ByteArray { return when { isMappedIpv4Address(address) -> address.sliceArray(12 until 16) else -> address } } /** Returns true for IPv6 addresses like `0000:0000:0000:0000:0000:ffff:XXXX:XXXX`. */ private fun isMappedIpv4Address(address: ByteArray): Boolean {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 11.2K bytes - Viewed (0)