Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 525 for COUNTER (0.41 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/internal/coverage/decodecounter/decodecounterfile.go

    				return binary.LittleEndian.Uint32(cdr.u32b), nil
    			}
    		}
    	} else {
    		panic("internal error: unknown counter flavor")
    	}
    
    	// Alternative/experimental path: one way we could handling writing
    	// out counter data would be to just memcpy the counter segment
    	// out to a file, meaning that a region in the counter memory
    	// corresponding to a dead (never-executed) function would just be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 27 15:29:54 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  6. 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)
  7. test/chan/select.go

    	}
    	if av, bv := <-a, <-b; av|bv != 3 {
    		println("bad values", av, bv)
    		panic("fail")
    	}
    	if v := Send(a, nil); v != 1 {
    		println("Send returned", v, "!= 1")
    		panic("fail")
    	}
    	if counter != 10 {
    		println("counter is", counter, "!= 10")
    		panic("fail")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:44:02 UTC 2012
    - 913 bytes
    - Viewed (0)
  8. src/runtime/coverage/coverage.go

    	return cfile.WriteMeta(w)
    }
    
    // WriteCountersDir writes a coverage counter-data file for the
    // currently running program to the directory specified in 'dir'. An
    // error will be returned if the operation can't be completed
    // successfully (for example, if the currently running program was not
    // built with "-cover", or if the directory does not exist). The
    // counter data written will be a snapshot taken at the point of the
    // call.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:41:02 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. platforms/jvm/jacoco/src/integTest/groovy/org/gradle/testing/jacoco/plugins/rules/JacocoViolationRulesLimit.groovy

        }
    
        private static String create(String counter, String value, BigDecimal minimum, BigDecimal maximum) {
            StringBuilder limit = new StringBuilder()
            limit <<= 'limit {\n'
    
            if (counter) {
                limit <<= "    counter = '${counter}'\n"
            }
            if (value) {
                limit <<= "    value = '${value}'\n"
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 16:03:36 UTC 2023
    - 2K bytes
    - Viewed (0)
  10. 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)
Back to top