Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for ByteArray (0.15 sec)

  1. okhttp/src/test/java/okhttp3/internal/HostnamesTest.kt

      }
    
      @Test
      fun canonicalizeInetAddressIPv6RepresentationOfCompatibleIPV4() {
        val addressAIpv6 = decodeIpv6("::192.168.0.1")!!
        assertThat(canonicalizeInetAddress(addressAIpv6)).isEqualTo(
          ByteArray(12) +
            byteArrayOf(
              192.toByte(),
              168.toByte(),
              0,
              1,
            ),
        )
      }
    
      @Test
      fun canonicalizeInetAddressIPv6RepresentationOfMappedIPV4() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 30 06:23:33 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  2. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/support/ClassBytesRepository.kt

     */
    
    package org.gradle.kotlin.dsl.internal.sharedruntime.support
    
    import java.io.Closeable
    import java.io.File
    import java.util.jar.JarFile
    
    
    private
    typealias ClassBytesSupplier = () -> ByteArray
    
    
    private
    typealias ClassBytesIndex = (String) -> ClassBytesSupplier?
    
    
    /**
     * Repository providing access to class bytes by Kotlin source names.
     *
    Plain Text
    - Registered: Wed Feb 28 11:36:09 GMT 2024
    - Last Modified: Sat Sep 30 16:17:27 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/platform/android/AndroidSocketAdapter.kt

      private val getAlpnSelectedProtocol = sslSocketClass.getMethod("getAlpnSelectedProtocol")
      private val setAlpnProtocols =
        sslSocketClass.getMethod("setAlpnProtocols", ByteArray::class.java)
    
      override fun isSupported(): Boolean = AndroidPlatform.isSupported
    
      override fun matchesSocket(sslSocket: SSLSocket): Boolean = sslSocketClass.isInstance(sslSocket)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/http/ThreadInterruptTest.kt

        }
      }
    
      @Test
      fun interruptReadingResponseBody() {
        val responseBodySize = 8 * 1024 * 1024 // 8 MiB.
        server.enqueue(
          MockResponse()
            .setBody(Buffer().write(ByteArray(responseBodySize)))
            .throttleBody((64 * 1024).toLong(), 125, TimeUnit.MILLISECONDS),
        ) // 500 Kbps
        server.start()
        val call =
          client.newCall(
            Request.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSession.kt

    import javax.security.cert.X509Certificate
    
    /** An [SSLSession] that delegates all calls.  */
    abstract class DelegatingSSLSession(protected val delegate: SSLSession?) : SSLSession {
      override fun getId(): ByteArray {
        return delegate!!.id
      }
    
      override fun getSessionContext(): SSLSessionContext {
        return delegate!!.sessionContext
      }
    
      override fun getCreationTime(): Long {
        return delegate!!.creationTime
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/RequestBody.kt

              }
            }
          }
        }
    
        /** Returns a new request body that transmits this. */
        @JvmOverloads
        @JvmStatic
        @JvmName("create")
        fun ByteArray.toRequestBody(
          contentType: MediaType? = null,
          offset: Int = 0,
          byteCount: Int = size,
        ): RequestBody = commonToRequestBody(contentType, offset, byteCount)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Jan 25 14:41:37 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/KtFirArrayOfSymbolProvider.kt

            val firSymbol = useSiteSession.symbolProvider.getTopLevelCallableSymbols(kotlinPackage, identifier).firstOrNull {
                /* choose (for byte array)
                 * public fun byteArrayOf(vararg elements: kotlin.Byte): kotlin.ByteArray
                 */
                (it as? FirFunctionSymbol<*>)?.fir?.valueParameters?.singleOrNull()?.isVararg == true
            } as? FirNamedFunctionSymbol ?: return null
    Plain Text
    - Registered: Fri Mar 22 08:18:09 GMT 2024
    - Last Modified: Fri Feb 03 14:29:54 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketWriter.kt

      private var writerClosed = false
    
      /** Lazily initialized on first use. */
      private var messageDeflater: MessageDeflater? = null
    
      // Masks are only a concern for client writers.
      private val maskKey: ByteArray? = if (isClient) ByteArray(4) else null
      private val maskCursor: Buffer.UnsafeCursor? = if (isClient) Buffer.UnsafeCursor() else null
    
      /** Send a ping with the supplied [payload]. */
      @Throws(IOException::class)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/-ResponseBodyCommon.kt

        throw IOException("Content-Length ($contentLength) and stream length ($size) disagree")
      }
      return bytes
    }
    
    internal fun ResponseBody.commonClose() = source().closeQuietly()
    
    internal fun ByteArray.commonToResponseBody(contentType: MediaType?): ResponseBody {
      return Buffer()
        .write(this)
        .asResponseBody(contentType, size.toLong())
    }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/FakeSSLSession.kt

      override fun getCipherSuite(): String {
        throw UnsupportedOperationException()
      }
    
      override fun getCreationTime(): Long {
        throw UnsupportedOperationException()
      }
    
      override fun getId(): ByteArray {
        throw UnsupportedOperationException()
      }
    
      override fun getLastAccessedTime(): Long {
        throw UnsupportedOperationException()
      }
    
      override fun getLocalCertificates(): Array<Certificate> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.3K bytes
    - Viewed (0)
Back to top