- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for arrayOfNulls (0.13 sec)
-
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/TlsUtil.kt
heldCertificate: HeldCertificate?, vararg intermediates: X509Certificate, ): X509KeyManager { val keyStore = newEmptyKeyStore(keyStoreType) if (heldCertificate != null) { val chain = arrayOfNulls<Certificate>(1 + intermediates.size) chain[0] = heldCertificate.certificate intermediates.copyInto(chain, 1) keyStore.setKeyEntry("private", heldCertificate.keyPair.private, password, chain) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt
) { private val headerList = mutableListOf<Header>() private val source: BufferedSource = source.buffer() // Visible for testing. @JvmField var dynamicTable = arrayOfNulls<Header>(8) // Array is populated back to front, so new entries always have lowest index. private var nextHeaderIndex = dynamicTable.size - 1 @JvmField var headerCount = 0
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 22.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/DateFormatting.kt
"EEE, dd-MM-yyyy HH:mm:ss z", // RI bug 6641315 claims a cookie of this format was once served by www.yahoo.com: "EEE MMM d yyyy HH:mm:ss z", ) private val BROWSER_COMPATIBLE_DATE_FORMATS = arrayOfNulls<DateFormat>(BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS.size) /** Returns the date for this string, or null if the value couldn't be parsed. */ fun String.toHttpDateOrNull(): Date? { if (isEmpty()) return null
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Http2.kt
"WINDOW_UPDATE", "CONTINUATION", ) /** * Lookup table for valid flags for DATA, HEADERS, CONTINUATION. Invalid combinations are * represented in binary. */ private val FLAGS = arrayOfNulls<String>(0x40) // Highest bit flag is 0x20. private val BINARY = Array(256) { format("%8s", Integer.toBinaryString(it)).replace(' ', '0') } init { FLAGS[FLAG_NONE] = ""
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-HeadersCommon.kt
} return Headers(namesAndValues) } internal fun Map<String, String>.commonToHeaders(): Headers { // Make a defensive copy and clean it up. val namesAndValues = arrayOfNulls<String>(size * 2) var i = 0 for ((k, v) in this) { val name = k.trim() val value = v.trim() headersCheckName(name) headersCheckValue(value, name) namesAndValues[i] = name
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Huffman.kt
val symbol: Int /** Number of bits represented in the terminal node. */ val terminalBitCount: Int /** Construct an internal node. */ constructor() { this.children = arrayOfNulls(256) this.symbol = 0 // Not read. this.terminalBitCount = 0 // Not read. } /** Construct a terminal node. */ constructor(symbol: Int, bits: Int) { this.children = null
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 8.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt
maxIdleConnections = 2, ) factory.newConnection(pool, routeA1) assertThat(realTaskRunner.activeQueues()).isNotEmpty() Thread.sleep(100) val threads = arrayOfNulls<Thread>(Thread.activeCount() * 2) Thread.enumerate(threads) for (t in threads) { if (t != null && t.name == "OkHttp TaskRunner") { t.interrupt() } } Thread.sleep(100)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jun 22 16:06:35 UTC 2024 - 12.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/Http2Test.kt
return buffer } /** Create a sufficiently large header set to overflow INITIAL_MAX_FRAME_SIZE bytes. */ private fun largeHeaders(): List<Header> { val nameValues = arrayOfNulls<String>(32) val chars = CharArray(512) var i = 0 while (i < nameValues.size) { Arrays.fill(chars, i.toChar()) val string = String(chars) nameValues[i++] = string
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 28.1K bytes - Viewed (0)