Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 958 for wcap (0.15 sec)

  1. internal/etag/reader.go

    	if r.Tagger == nil {
    		return nil
    	}
    	return r.Tagger.ETag()
    }
    
    // Wrap returns an io.Reader that reads from the wrapped
    // io.Reader and implements the Tagger interaface.
    //
    // If content implements Tagger then the returned Reader
    // returns ETag of the content. Otherwise, it returns
    // nil as ETag.
    //
    // Wrap provides an adapter for io.Reader implementations
    // that don't implement the Tagger interface.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/kube/controller/network_test.go

    			IP:    "2.3.4.6",
    			Ports: []corev1.PortStatus{{Port: 15443, Protocol: corev1.ProtocolTCP}},
    		}}}},
    	}
    	clienttest.Wrap(t, c.services).CreateOrUpdate(svc)
    }
    
    func removeLabeledServiceGateway(t *testing.T, c *FakeController) {
    	clienttest.Wrap(t, c.services).Delete("istio-labeled-gw", "arbitrary-ns")
    }
    
    // creates a gateway that exposes 2 ports that are valid auto-passthrough ports
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 19:09:43 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/mremap.go

    	mremap: mremap,
    }
    
    func (m *mremapMmapper) Mremap(oldData []byte, newLength int, flags int) (data []byte, err error) {
    	if newLength <= 0 || len(oldData) == 0 || len(oldData) != cap(oldData) || flags&mremapFixed != 0 {
    		return nil, EINVAL
    	}
    
    	pOld := &oldData[cap(oldData)-1]
    	m.Lock()
    	defer m.Unlock()
    	bOld := m.active[pOld]
    	if bOld == nil || &bOld[0] != &oldData[0] {
    		return nil, EINVAL
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. src/internal/types/testdata/check/builtins0.go

    	var x = f()
    	const (
    		_ = cap([4]int{})
    		_ = cap([4]int{x})
    		_ = cap /* ERROR "not constant" */ ([4]int{f()})
    		_ = cap /* ERROR "not constant" */ ([4]int{cap([]int{})})
    		_ = cap([4]int{cap([4]int{})})
    	)
    	var y float64
    	var z complex128
    	const (
    		_ = cap([4]float64{})
    		_ = cap([4]float64{y})
    		_ = cap([4]float64{real(2i)})
    		_ = cap /* ERROR "not constant" */ ([4]float64{real(z)})
    	)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/testdata/chan_test.go

    func testCapChan(t *testing.T) {
    
    	v := make(chan int, 25)
    
    	if want, got := 25, capChan_ssa(v); got != want {
    		t.Errorf("expected cap(chan) = %d, got %d", want, got)
    	}
    }
    
    func testCapNilChan(t *testing.T) {
    
    	var v chan int
    	if want, got := 0, capChan_ssa(v); got != want {
    		t.Errorf("expected cap(nil) = %d, got %d", want, got)
    	}
    }
    
    func TestChan(t *testing.T) {
    	testLenChan(t)
    	testLenNilChan(t)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  6. internal/dsync/utils.go

    import (
    	"math/rand"
    	"time"
    )
    
    func backoffWait(min, unit, cap time.Duration) func(*rand.Rand, uint) time.Duration {
    	if unit > time.Hour {
    		// Protect against integer overflow
    		panic("unit cannot exceed one hour")
    	}
    	return func(r *rand.Rand, attempt uint) time.Duration {
    		sleep := min
    		sleep += unit * time.Duration(attempt)
    		if sleep > cap {
    			sleep = cap
    		}
    		sleep -= time.Duration(r.Float64() * float64(sleep))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat May 13 15:42:21 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  7. test/fixedbugs/bug491.go

    		if len(a) != 1 || len(c) != 3 {
    			bug()
    			println("append call not ordered:", len(a), b, len(c))
    		}
    	}
    
    	// cap
    	{
    		x := make([]int, 1)
    		f := func() int { x = make([]int, 3); return 2 }
    		a, b, c := cap(x), f(), cap(x)
    		if a != 1 || c != 3 {
    			bug()
    			println("cap call not ordered:", a, b, c)
    		}
    	}
    
    	// complex
    	{
    		x := 1.0
    		f := func() int { x = 3; return 2 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 2K bytes
    - Viewed (0)
  8. src/runtime/os_illumos.go

    	}
    
    	if cents := int32(getcpucap()); cents > 0 {
    		// Convert from a percentage of CPUs to a number of CPUs,
    		// rounding up to make use of a fractional CPU
    		// e.g., 336% becomes 4 CPUs
    		ncap := (cents + 99) / 100
    		if ncap < n {
    			return ncap
    		}
    	}
    
    	return n
    }
    
    //go:nosplit
    func getrctl(controlname, oldbuf, newbuf unsafe.Pointer, flags uint32) uintptr {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 28 18:06:12 UTC 2019
    - 3.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/fieldmanager/admission_test.go

    	"k8s.io/apiserver/pkg/endpoints/handlers/fieldmanager"
    	"sigs.k8s.io/structured-merge-diff/v4/fieldpath"
    )
    
    func TestAdmission(t *testing.T) {
    	wrap := &mockAdmissionController{}
    	ac := fieldmanager.NewManagedFieldsValidatingAdmissionController(wrap)
    	now := metav1.Now()
    
    	validFieldsV1 := metav1.FieldsV1{}
    	var err error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 12 21:32:54 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

          HashMap<String, String> map = Maps.newHashMap();
          for (Entry<String, String> entry : entries) {
            map.put(entry.getKey(), entry.getValue());
          }
          return wrap(map);
        }
    
        abstract Map<String, String> wrap(HashMap<String, String> map);
      }
    
      private static TestSuite wrappedHashMapTests(
          WrappedHashMapGenerator generator, String name, Feature<?>... features) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 11.5K bytes
    - Viewed (0)
Back to top