- Sort Score
- Num 10 results
- Language All
Results 261 - 270 of 420 for Clone (0.02 seconds)
-
internal/event/targetlist.go
wg.Wait() list.totalEvents.Add(1) } func (list *TargetList) sendAsync(event Event, targetIDset TargetIDSet) { select { case list.queue <- asyncEvent{ ev: event, targetSet: targetIDset.Clone(), }: case <-list.ctx.Done(): list.eventsSkipped.Add(int64(len(list.queue))) return default: list.eventsSkipped.Add(1)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 9.2K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt
internal fun <T> Array<out T>?.toImmutableList(): List<T> = when { this.isNullOrEmpty() -> emptyList() this.size == 1 -> Collections.singletonList(this[0]) else -> this.clone().asList().unmodifiable() } /** Closes this, ignoring any checked exceptions. */ internal fun Socket.closeQuietly() { try { close() } catch (e: AssertionError) { throw e
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 10.3K bytes - Click Count (1) -
src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java
} @Test @DisplayName("Should not modify buffer") void testWriteBytesWireFormatNoModification() { byte[] buffer = new byte[1024]; byte[] originalBuffer = buffer.clone(); echoResponse.writeBytesWireFormat(buffer, 0); assertArrayEquals(originalBuffer, buffer); } } @Nested @DisplayName("Read Bytes Wire Format Tests")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/RegularImmutableMap.java
// entryArray) in the Kotlin translation. Entry<K, V>[] originalEntries = entries; entries = originalEntries.clone(); } } entries[entryIndex] = effectiveEntry; } if (duplicates != null) { entries = removeDuplicates(entries, n, n - dupCount, duplicates);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 15.7K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/io/ContentCacheTest.java
} } @Test public void testMemoryBasedCacheDefensiveCopy() throws IOException { byte[] data = "Hello, World!".getBytes(); byte[] originalData = data.clone(); ContentCache cache = new ContentCache(data); // Modify the original array data[0] = 'X'; // Verify that the cache's data is not affectedCreated: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 15.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java
Random rnd = new Random(714958103); for (int trial = 0; trial < 100; trial++) { byte[] left = new byte[1 + rnd.nextInt(32)]; rnd.nextBytes(left); byte[] right = left.clone(); assertThat(comparator1.compare(left, right)).isEqualTo(0); assertThat(comparator2.compare(left, right)).isEqualTo(0); int i = rnd.nextInt(left.length); left[i] ^= (byte) (1 + rnd.nextInt(255));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 01:43:32 GMT 2026 - 14K bytes - Click Count (0) -
cmd/tier.go
config.RLock() defer config.RUnlock() var tierCfgs []madmin.TierConfig for _, tier := range config.Tiers { // This makes a local copy of tier config before // passing a reference to it. tier := tier.Clone() tierCfgs = append(tierCfgs, tier) } return tierCfgs } // Edit replaces the credentials of the remote tier specified by tierName with creds.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 15.6K bytes - Click Count (0) -
guava/src/com/google/common/collect/MapMakerInternalMap.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 89.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/CriticalPerformanceTest.java
Mockito.when(mockCredentials.unwrap(jcifs.smb.CredentialsInternal.class)).thenReturn(mockCredentialsInternal); Mockito.when(mockCredentialsInternal.clone()).thenReturn(mockCredentialsInternal); Mockito.when(mockConfig.getSessionLimit()).thenReturn(10); // Clear buffer cache for consistent test results BufferCache.clearCache(); } /**
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 15.3K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java
MavenProject forkedProject = projectIndex.getProjects().get(projectId); forkedProjects.add(forkedProject); MavenProject executedProject = forkedProject.clone(); forkedProject.setExecutionProject(executedProject); List<MojoExecution> mojoExecutions = fork.getValue(); if (mojoExecutions.isEmpty()) {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Jun 12 14:55:55 GMT 2025 - 21K bytes - Click Count (0)