- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,103 for toType (0.21 sec)
-
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt
limit = pushedLimit constructed = pushedConstructed if (name != null) path.removeAt(path.size - 1) } } /** * Execute [block] with a new namespace for type hints. Type hints from the enclosing type are no * longer usable by the current type's members. */ fun <T> withTypeHint(block: () -> T): T { typeHintStack.add(null) try { return block() } finally {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 10.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2Test.kt
} } @Test fun readPaddedDataFrame() { val dataLength = 1123 val expectedData = ByteArray(dataLength) Arrays.fill(expectedData, 2.toByte()) val paddingLength = 254 val padding = ByteArray(paddingLength) Arrays.fill(padding, 0.toByte()) writeMedium(frame, dataLength + paddingLength + 1) frame.writeByte(Http2.TYPE_DATA) frame.writeByte(FLAG_PADDED)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 28.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/HostnamesTest.kt
byteArrayOf(192.toByte(), 168.toByte(), 0, 1), ), ).isEqualTo("192.168.0.1") assertThat( inet4AddressToAscii( byteArrayOf(252.toByte(), 253.toByte(), 254.toByte(), 255.toByte()), ), ).isEqualTo("252.253.254.255") assertThat( inet4AddressToAscii( byteArrayOf(255.toByte(), 255.toByte(), 255.toByte(), 255.toByte()), ),
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/ws/WebSocketProtocol.kt
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 4.8K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Hpack.kt
* malformed. */ @Throws(IOException::class) fun checkLowercase(name: ByteString): ByteString { for (i in 0 until name.size) { if (name[i] in 'A'.code.toByte()..'Z'.code.toByte()) { throw IOException("PROTOCOL_ERROR response malformed: mixed case name: ${name.utf8()}") } } return name }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon May 05 16:01:00 UTC 2025 - 22.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/HttpHeaders.kt
private fun Buffer.skipCommasAndWhitespace(): Boolean { var commaFound = false loop@ while (!exhausted()) { when (this[0]) { ','.code.toByte() -> { // Consume ','. readByte() commaFound = true } ' '.code.toByte(), '\t'.code.toByte() -> { readByte() // Consume space or tab. } else -> break@loop } } return commaFound
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon May 05 16:01:00 UTC 2025 - 7.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt
// Verify the peer received what was expected. assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_PING) assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_HEADERS) assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_PING) assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_DATA) assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_RST_STREAM) } @Test fun outgoingWritesAreBatched() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 75.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/convert/ByteConversionUtil.java
*/ public static Byte toByte(final Object o) { return toByte(o, null); } /** * Converts to {@link Byte}. * * @param o * The object to convert * @param pattern * The pattern string * @return The converted {@link Byte} */ public static Byte toByte(final Object o, final String pattern) { if (o == null) {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 3.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/ByteConversionUtilTest.java
* */ public class ByteConversionUtilTest extends TestCase { /** * @throws Exception */ public void testToByte() throws Exception { assertEquals(Byte.valueOf("100"), ByteConversionUtil.toByte("100")); } /** * @throws Exception */ public void testToPrimitiveByte() throws Exception { assertEquals(100, ByteConversionUtil.toPrimitiveByte("100")); } /**
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 1.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HostnamesCommon.kt
private fun isMappedIpv4Address(address: ByteArray): Boolean { if (address.size != 16) return false for (i in 0 until 10) { if (address[i] != 0.toByte()) return false } 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. */
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 11.2K bytes - Viewed (0)