- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of about 10,000 for copy2 (7.29 sec)
-
platforms/documentation/docs/src/snippets/tasks/accessFromTaskContainer/kotlin/build.gradle.kts
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 211 bytes - Viewed (0) -
src/slices/slices.go
tot := len(s[:i]) + len(v) + len(s[j:]) if tot > cap(s) { // Too big to fit, allocate and copy over. s2 := append(s[:i], make(S, tot-i)...) // See Insert copy(s2[i:], v) copy(s2[i+len(v):], s[j:]) return s2 } r := s[:tot] if i+len(v) <= j { // Easy, as v fits in the deleted portion. copy(r[i:], v) copy(r[i+len(v):], s[j:]) clear(s[tot:]) // zero/nil out the obsolete elements, for GC
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 29 14:01:59 UTC 2024 - 13.6K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/io/CharStreamsCopyBenchmark.java
} return total; } }, NEW { @Override long copy(Readable from, Appendable to) throws IOException { return CharStreams.copy(from, to); } }; abstract long copy(Readable from, Appendable to) throws IOException; } enum TargetSupplier { STRING_WRITER { @Override Appendable get(int sz) { return new StringWriter(sz); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 23 18:59:54 UTC 2023 - 3.2K bytes - Viewed (0) -
platforms/jvm/language-jvm/src/main/java/org/gradle/language/jvm/tasks/ProcessResources.java
*/ @DisableCachingByDefault(because = "Not worth caching") public abstract class ProcessResources extends Copy { @Override protected void copy() { boolean cleanedOutputs = StaleOutputCleaner.cleanOutputs(getDeleter(), getOutputs().getPreviousOutputFiles(), getDestinationDir()); super.copy(); if (cleanedOutputs) { setDidWork(true); } } @Inject
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 1.5K bytes - Viewed (0) -
src/runtime/arena_test.go
t.Error("Clone did not make a copy") } // Clone should make a copy of subAs, since subAs is just part of as and so is in the arena. subAs := as[1:3] subAsCopy := UserArenaClone(subAs) if unsafe.StringData(subAs) == unsafe.StringData(subAsCopy) { t.Error("Clone did not make a copy") } if len(subAs) != len(subAsCopy) { t.Errorf("Clone made an incorrect copy (bad length): %d -> %d", len(subAs), len(subAsCopy))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 13.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/audit/request.go
return nil, false, nil } // TODO a deep copy isn't really needed here, figure out how we can reliably // use shallow copy here to omit the manageFields. copy := obj.DeepCopyObject() if isAccessor { if err := removeManagedFields(copy); err != nil { return nil, false, err } } if isList { if err := meta.EachListItem(copy, removeManagedFields); err != nil { return nil, false, err
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 16:16:51 UTC 2023 - 9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java
public void testInverseSerialization() { BiMapPair<K, V> pair = new BiMapPair<>(getMap()); BiMapPair<K, V> copy = SerializableTester.reserialize(pair); assertEquals(pair.forward, copy.forward); assertEquals(pair.backward, copy.backward); assertSame(copy.backward, copy.forward.inverse()); assertSame(copy.forward, copy.backward.inverse()); } private static class BiMapPair<K, V> implements Serializable {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 3K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/TaskContainerIntegrationTest.groovy
} def "chained lookup of tasks.withType.matching"() { buildFile """ tasks.withType(Copy).matching({ it.name.endsWith("foo") }).all { task -> assert task.path in [':foo'] } tasks.register("foo", Copy) tasks.register("bar", Copy) tasks.register("foobar", Delete) tasks.register("barfoo", Delete) """ expect:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 07:46:00 UTC 2024 - 4.9K bytes - Viewed (0) -
tests/integration/security/fuzz/fuzzers/jwt_tool/Dockerfile
FROM python:3 RUN git clone https://github.com/ticarpi/jwt_tool WORKDIR /jwt_tool COPY run.sh . COPY jwtconf.ini . COPY sample-RSA-private.pem . COPY sample-RSA-public.pem . RUN chmod +x ./run.sh && chmod +x jwt_tool.py && apt-get update && apt-get install --no-install-recommends -y python3-pip \ && apt-get clean && rm -rf /var/lib/apt/lists/* RUN python3 -m pip install --no-cache-dir termcolor==1.1.0 cprint==1.2.2 pycryptodomex==3.10.1 requests==2.25.1
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jun 21 20:06:01 UTC 2021 - 485 bytes - Viewed (0) -
pkg/test/loadbalancersim/timeseries/instance.go
ts.mutex.Lock() defer ts.mutex.Unlock() return ts.data.Copy() } func (ts *Instance) Series() (Data, []time.Time) { ts.mutex.Lock() defer ts.mutex.Unlock() return ts.data.Copy(), ts.times.copy() } func (ts *Instance) SeriesAsDurationSinceEpoch(epoch time.Time) (Data, []time.Duration) { ts.mutex.Lock() defer ts.mutex.Unlock() return ts.data.Copy(), ts.times.asDurationSinceEpoch(epoch) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 03 18:19:25 UTC 2022 - 1.8K bytes - Viewed (0)