Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 1,175 for zero (0.05 sec)

  1. src/runtime/malloc_test.go

    	GC()
    
    	// Test that MemStats has sane values.
    	st := new(MemStats)
    	ReadMemStats(st)
    
    	nz := func(x any) error {
    		if x != reflect.Zero(reflect.TypeOf(x)).Interface() {
    			return nil
    		}
    		return fmt.Errorf("zero value")
    	}
    	le := func(thresh float64) func(any) error {
    		return func(x any) error {
    			// These sanity tests aren't necessarily valid
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  2. src/reflect/abi_test.go

    	B int
    }
    
    // Struct14 tests a non-zero-sized (and otherwise register-assignable)
    // struct with a field that is a non-zero length array with zero-sized members.
    type Struct14 struct {
    	A uintptr
    	X [3]struct{}
    	B float64
    }
    
    // Struct15 tests a non-zero-sized (and otherwise register-assignable)
    // struct with a struct field that is zero-sized but contains a
    // non-zero length array with zero-sized members.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 26.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

          sink.flush()
        }
      }
    
      /**
       * Tell the peer to stop creating streams and that we last processed `lastGoodStreamId`, or zero
       * if no streams were processed.
       *
       * @param lastGoodStreamId the last stream ID processed, or zero if no streams were processed.
       * @param errorCode reason for closing the connection.
       * @param debugData only valid for HTTP/2; opaque debug data to send.
       */
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

    /*
     * Written by Doug Lea and Martin Buchholz with assistance from
     * members of JCP JSR-166 Expert Group and released to the public
     * domain, as explained at
     * http://creativecommons.org/publicdomain/zero/1.0/
     */
    
    /*
     * Source:
     * http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/test/tck-jsr166e/AtomicDoubleArrayTest.java?revision=1.13
     * (Modified to adapt to guava coding conventions)
     */
    
    package com.google.common.util.concurrent;
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. src/runtime/slice.go

    	new := growslice(old.array, old.cap+num, old.cap, num, et)
    	// growslice does not zero out new[old.cap:new.len] since it assumes that
    	// the memory will be overwritten by an append() that called growslice.
    	// Since the caller of reflect_growslice is not append(),
    	// zero out this region before returning the slice to the reflect package.
    	if !et.Pointers() {
    		oldcapmem := uintptr(old.cap) * et.Size_
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  6. src/log/slog/value.go

    	timeTime time.Time
    )
    
    // TimeValue returns a [Value] for a [time.Time].
    // It discards the monotonic portion.
    func TimeValue(v time.Time) Value {
    	if v.IsZero() {
    		// UnixNano on the zero time is undefined, so represent the zero time
    		// with a nil *time.Location instead. time.Time.Location method never
    		// returns nil, so a Value with any == timeLocation(nil) cannot be
    		// mistaken for any other Value, time.Time or otherwise.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. src/internal/fuzz/fuzz.go

    	// there will be no limit on the number of generated values.
    	Limit int64
    
    	// MinimizeTimeout is the amount of wall clock time to spend minimizing
    	// after discovering a crasher. If zero, there will be no time limit. If
    	// MinimizeTimeout and MinimizeLimit are both zero, then minimization will
    	// be disabled.
    	MinimizeTimeout time.Duration
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  8. src/text/template/exec.go

    func (s *state) varValue(name string) reflect.Value {
    	for i := s.mark() - 1; i >= 0; i-- {
    		if s.vars[i].name == name {
    			return s.vars[i].value
    		}
    	}
    	s.errorf("undefined variable: %s", name)
    	return zero
    }
    
    var zero reflect.Value
    
    type missingValType struct{}
    
    var missingVal = reflect.ValueOf(missingValType{})
    
    var missingValReflectType = reflect.TypeFor[missingValType]()
    
    func isMissing(v reflect.Value) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

      }
    
      @CollectionSize.Require(ZERO)
      public void testEmptyMultisetFirst() {
        assertNull(sortedMultiset.firstEntry());
        try {
          sortedMultiset.elementSet().first();
          fail();
        } catch (NoSuchElementException e) {
        }
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(ZERO)
      public void testEmptyMultisetPollFirst() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

      private enum TimeoutsToUse {
        ANY(Timeout.values()),
        PAST(Timeout.MIN, Timeout.MINUS_SMALL, Timeout.ZERO),
        FUTURE(Timeout.SMALL, Timeout.MAX),
        SMALL(Timeout.SMALL),
        FINITE(Timeout.MIN, Timeout.MINUS_SMALL, Timeout.ZERO, Timeout.SMALL),
        INFINITE(Timeout.LARGE, Timeout.MAX);
    
        final ImmutableList<Timeout> timeouts;
    
        TimeoutsToUse(Timeout... timeouts) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 27.1K bytes
    - Viewed (0)
Back to top