- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for mutable_op (0.07 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/cache2/FileOperator.kt
) { if (byteCount < 0L || byteCount > source.size) { throw IndexOutOfBoundsException() } var mutablePos = pos var mutableByteCount = byteCount while (mutableByteCount > 0L) { val bytesWritten = fileChannel.transferFrom(source, mutablePos, mutableByteCount) mutablePos += bytesWritten mutableByteCount -= bytesWritten } } /**
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-RequestCommon.kt
tag: T?, ) = apply { if (tag == null) { if (tags.isNotEmpty()) { (tags as MutableMap).remove(type) } } else { val mutableTags: MutableMap<KClass<*>, Any> = when { tags.isEmpty() -> mutableMapOf<KClass<*>, Any>().also { tags = it } else -> tags as MutableMap<KClass<*>, Any> } mutableTags[type] = tag } }
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-testing-support/src/main/kotlin/okhttp3/FakeDns.kt
import assertk.assertThat import assertk.assertions.containsExactly import java.net.InetAddress import java.net.UnknownHostException import okio.Buffer class FakeDns : Dns { private val hostAddresses: MutableMap<String, List<InetAddress>> = mutableMapOf() private val requestedHosts: MutableList<String> = mutableListOf() private var nextAddress = 0xff000064L // 255.0.0.100 in IPv4; ::ff00:64 in IPv6.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.6K bytes - Viewed (0) -
tensorflow/c/eager/c_api_cluster_test.cc
// Another renaming of local device const string second_name = "def"; server_def.set_job_name(second_name); server_def.mutable_cluster()->mutable_job(0)->set_name(second_name); (*server_def.mutable_cluster()->mutable_job(0)->mutable_tasks())[0] = absl::StrCat(second_name, ":", tensorflow::testing::PickUnusedPortOrDie()); serialized = server_def.SerializeAsString();
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 19.2K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test_util.cc
tensorflow::ServerDef server_def_copy = server_def; tensorflow::ClusterDef* cluster_def = server_def_copy.mutable_cluster(); tensorflow::JobDef* job_def = cluster_def->mutable_job(0); const int port = tensorflow::testing::PickUnusedPortOrDie(); job_def->mutable_tasks()->at(task_index) = tensorflow::strings::StrCat("localhost:", port); return server_def_copy; }
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Wed Feb 21 22:37:46 UTC 2024 - 23.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
return object : CookieHandler() { override fun put( uri: URI?, responseHeaders: MutableMap<String, MutableList<String>>?, ) = TODO() override fun get( uri: URI?, requestHeaders: MutableMap<String, MutableList<String>>?, ): MutableMap<String, MutableList<String>> = TODO() } } private fun newInterceptorChain(): Interceptor.Chain {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 46.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt
/** * Tests how each code point is encoded and decoded in the context of each URL component. * * This supports [HttpUrlTest]. */ class UrlComponentEncodingTester private constructor() { private val encodings: MutableMap<Int, Encoding> = LinkedHashMap() private fun allAscii(encoding: Encoding) = apply { for (i in 0..127) { encodings[i] = encoding } } fun override( encoding: Encoding,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 12.3K bytes - Viewed (0)