- Sort Score
- Result 10 results
- Languages All
Results 391 - 400 of 734 for val3 (0.05 sec)
-
src/test/java/jcifs/smb1/smb1/Trans2FindFirst2ResponseTest.java
private void writeInt2(int val, byte[] dst, int dstIndex) { dst[dstIndex] = (byte) val; dst[dstIndex + 1] = (byte) (val >> 8); } private void writeInt4(int val, byte[] dst, int dstIndex) { dst[dstIndex] = (byte) val; dst[dstIndex + 1] = (byte) (val >> 8); dst[dstIndex + 2] = (byte) (val >> 16); dst[dstIndex + 3] = (byte) (val >> 24); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
buildSrc/src/main/kotlin/AlpnVersions.kt
* https://github.com/xjdr/xio/blob/master/alpn-boot.gradle */ fun alpnBootVersion(): String? { val version = System.getProperty("alpn.boot.version") if (version != null) { return version } val javaVersion = System.getProperty("java.version") val match = "1\\.8\\.0_(\\d+)(-.*)?".toRegex().find(javaVersion) ?: return null
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.8K bytes - Viewed (0) -
samples/tlssurvey/src/main/kotlin/okhttp3/survey/ssllabs/SslLabsClient.kt
callFactory: Call.Factory, ) { private val moshi = Moshi.Builder().build() private val moshiConverterFactory = MoshiConverterFactory.create(moshi) private val retrofit = Retrofit .Builder() .baseUrl(SslLabsApi.BASE_URL) .addConverterFactory(moshiConverterFactory) .callFactory(callFactory) .build() private val sslLabsApi = retrofit.create(SslLabsApi::class.java)Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.7K bytes - Viewed (0) -
okhttp/src/commonTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabaseTest.kt
class PublicSuffixDatabaseTest { private val publicSuffixDatabase = PublicSuffixDatabase.get() val pathForTests = okHttpRoot / "okhttp/src/jvmMain/resources" / PUBLIC_SUFFIX_RESOURCE @Before fun setUp() { beforePublicSuffixTest() } @Test fun allPublicSuffixes() { val buffer = Buffer() FileSystem.SYSTEM.read(pathForTests) { val length = readInt()Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue May 27 22:00:49 UTC 2025 - 8.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java
*/ @ParameterizedTest(name = "Encode and decode {0}") @ValueSource(longs = { 0L, 1L, -1L, Long.MAX_VALUE, Long.MIN_VALUE }) public void testEncodeWithVariousValues(long val) throws NdrException { NdrHyper hyper = new NdrHyper(val); // Create buffer with extra space for alignment NdrBuffer buf = new NdrBuffer(new byte[16], 0); hyper.encode(buf); // Reset buffer position for decodingRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
android-test/src/test/kotlin/okhttp/android/test/BaseOkHttpClientUnitTest.kt
.build() } @Test fun testRequestExternal() { assumeNetwork() val request = Request("https://www.google.com/robots.txt".toHttpUrl()) val networkRequest = request .newBuilder() .build() val call = client.newCall(networkRequest) call.execute().use { response -> assertThat(response.code).isEqualTo(200)
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Jul 22 20:03:31 UTC 2025 - 2.3K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/PostMultipart.kt
import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.RequestBody.Companion.asRequestBody class PostMultipart { private val client = OkHttpClient() fun run() { // Use the imgur image upload API as documented at https://api.imgur.com/endpoints/image val requestBody = MultipartBody .Builder() .setType(MultipartBody.FORM) .addFormDataPart("title", "Square Logo")Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 2.1K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilCommon.kt
import okio.FileNotFoundException import okio.FileSystem import okio.IOException import okio.Options import okio.Path import okio.use @JvmField internal val EMPTY_BYTE_ARRAY: ByteArray = ByteArray(0) /** Byte order marks. */ internal val UNICODE_BOMS = Options.of( // UTF-8. "efbbbf".decodeHex(), // UTF-16BE. "feff".decodeHex(), // UTF-32LE. "fffe0000".decodeHex(),
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Mon May 05 16:01:00 UTC 2025 - 10.1K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/sni/SniOverrideTest.kt
) : DelegatingSSLSocketFactory(delegate) { override fun configureSocket(sslSocket: SSLSocket): SSLSocket { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { val parameters = sslSocket.sslParameters val sni = parameters.serverNames Log.d("CustomSSLSocketFactory", "old SNI: $sni") parameters.serverNames = mutableListOf<SNIServerName>(SNIHostName("cloudflare-dns.com"))
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.6K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsRecordCodecTest.kt
@Test fun testGoogleDotComEncoding() { val encoded = encodeQuery("google.com", TYPE_A) assertThat(encoded).isEqualTo("AAABAAABAAAAAAAABmdvb2dsZQNjb20AAAEAAQ") } private fun encodeQuery( host: String, type: Int, ): String = DnsRecordCodec.encodeQuery(host, type).base64Url().replace("=", "") @Test fun testGoogleDotComEncodingWithIPv6() { val encoded = encodeQuery("google.com", TYPE_AAAA)
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu May 29 20:09:10 UTC 2025 - 3.6K bytes - Viewed (0)