- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 663 for counter1 (0.15 sec)
-
platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/WithSideEffectProviderTest.groovy
} def "runs side effect when calling '#method' on changing provider"() { given: def sideEffect = Mock(ValueSupplier.SideEffect) def counter = new AtomicInteger(23) def parent = Providers.changing { counter.getAndIncrement() } def provider = parent.withSideEffect(sideEffect) when: provider.calculateValue(ValueSupplier.ValueConsumer.IgnoreUnsafeRead)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 26 06:53:07 UTC 2023 - 10.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/responsewriter/wrapper_test.go
} } type fakeResponseWriterDecorator struct { http.ResponseWriter counter *counter } func (fw *fakeResponseWriterDecorator) Unwrap() http.ResponseWriter { return fw.ResponseWriter } func (fw *fakeResponseWriterDecorator) Flush() { if fw.counter != nil { fw.counter.FlushInvoked++ } fw.ResponseWriter.(http.Flusher).Flush() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 17 12:58:53 UTC 2021 - 8.1K bytes - Viewed (0) -
src/internal/fuzz/mutators_byteslice_test.go
) type mockRand struct { values []int counter int b bool } func (mr *mockRand) uint32() uint32 { c := mr.values[mr.counter] mr.counter++ return uint32(c) } func (mr *mockRand) intn(n int) int { c := mr.values[mr.counter] mr.counter++ return c % n } func (mr *mockRand) uint32n(n uint32) uint32 { c := mr.values[mr.counter] mr.counter++ return uint32(c) % n }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 19 18:23:43 UTC 2021 - 4.3K bytes - Viewed (0) -
src/crypto/cipher/gcm.go
g.cipher.Encrypt(mask[:], counter[:]) gcmInc32(counter) subtle.XORBytes(out, in, mask[:]) } } // deriveCounter computes the initial GCM counter state from the given nonce. // See NIST SP 800-38D, section 7.1. This assumes that counter is filled with // zeros on entry. func (g *gcm) deriveCounter(counter *[gcmBlockSize]byte, nonce []byte) { // GCM has two modes of operation with respect to the initial counter
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 13.7K bytes - Viewed (0) -
src/runtime/pinner.go
if !exists { throw("runtime.Pinner: decreased non-existing pin counter") } counter := (*specialPinCounter)(unsafe.Pointer(*ref)) counter.counter-- if counter.counter == 0 { *ref = counter.special.next if span.specials == nil { spanHasNoSpecials(span) } lock(&mheap_.speciallock) mheap_.specialPinCounterAlloc.free(unsafe.Pointer(counter)) unlock(&mheap_.speciallock) return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 11K bytes - Viewed (0) -
src/crypto/rand/rand_plan9.go
blockCipher, err := aes.NewCipher(r.key[:]) if err != nil { r.mu.Unlock() return 0, err } var ( counter uint64 block [aes.BlockSize]byte ) inc := func() { counter++ if counter == 0 { panic("crypto/rand counter wrapped") } byteorder.LePutUint64(block[:], counter) } blockCipher.Encrypt(r.key[:aes.BlockSize], block[:]) inc() blockCipher.Encrypt(r.key[aes.BlockSize:], block[:])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 1.8K bytes - Viewed (0) -
test/chan/select.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Feb 19 06:44:02 UTC 2012 - 913 bytes - Viewed (0) -
platforms/jvm/jacoco/src/integTest/groovy/org/gradle/testing/jacoco/plugins/rules/JacocoViolationRulesLimit.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 14 16:03:36 UTC 2023 - 2K bytes - Viewed (0) -
pkg/kubelet/pluginmanager/metrics/metrics.go
} func (c *totalPluginsCollector) getPluginCount() pluginCount { counter := make(pluginCount) for _, registeredPlugin := range c.asw.GetRegisteredPlugins() { socketPath := registeredPlugin.SocketPath counter.add("actual_state_of_world", socketPath) } for _, pluginToRegister := range c.dsw.GetPluginsToRegister() { socketPath := pluginToRegister.SocketPath counter.add("desired_state_of_world", socketPath) } return counter
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 08 01:16:57 UTC 2019 - 2.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java
void doIt(ImmutableDoubleArray.Builder builder, AtomicInteger counter) { builder.add(counter.getAndIncrement()); } }, ADD_ARRAY { @Override void doIt(ImmutableDoubleArray.Builder builder, AtomicInteger counter) { double[] array = new double[RANDOM.nextInt(10)]; for (int i = 0; i < array.length; i++) { array[i] = counter.getAndIncrement(); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jun 06 15:23:21 UTC 2023 - 20K bytes - Viewed (0)