- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for inet4AddressToAscii (0.06 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/HostnamesTest.kt
} @Test fun inet4AddressToAscii() { assertThat( inet4AddressToAscii( byteArrayOf(0, 0, 0, 0), ), ).isEqualTo("0.0.0.0") assertThat( inet4AddressToAscii( byteArrayOf(1, 2, 3, 4), ), ).isEqualTo("1.2.3.4") assertThat( inet4AddressToAscii( byteArrayOf(127, 0, 0, 1), ),
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 5.1K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HostnamesCommon.kt
if (address[10] != 255.toByte()) return false if (address[11] != 255.toByte()) return false return true } /** Encodes an IPv4 address in canonical form according to RFC 4001. */ internal fun inet4AddressToAscii(address: ByteArray): String { require(address.size == 4) return Buffer() .writeDecimalLong((address[0] and 0xff).toLong()) .writeByte('.'.code) .writeDecimalLong((address[1] and 0xff).toLong())
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 11.2K bytes - Viewed (0)