Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 333 for fSlice (0.11 sec)

  1. src/runtime/slice.go

    package runtime
    
    import (
    	"internal/abi"
    	"internal/goarch"
    	"runtime/internal/math"
    	"runtime/internal/sys"
    	"unsafe"
    )
    
    type slice struct {
    	array unsafe.Pointer
    	len   int
    	cap   int
    }
    
    // A notInHeapSlice is a slice backed by runtime/internal/sys.NotInHeap memory.
    type notInHeapSlice struct {
    	array *notInHeap
    	len   int
    	cap   int
    }
    
    func panicmakeslicelen() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/expr.go

    	// restrict to slice/map/func == nil and nil == slice/map/func.
    	if l.Type().IsArray() && !types.IsComparable(l.Type()) {
    		base.Errorf("invalid operation: %v (%v cannot be compared)", n, l.Type())
    		return l, r, nil
    	}
    
    	if l.Type().IsSlice() && !ir.IsNil(l) && !ir.IsNil(r) {
    		base.Errorf("invalid operation: %v (slice can only be compared to nil)", n)
    		return l, r, nil
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1_test.go

    	}
    
    	aliceAttr := authorizer.AttributesRecord{User: &user.DefaultInfo{Name: "alice"}, ResourceRequest: true, Namespace: "kittensandponies"}
    	bobAttr := authorizer.AttributesRecord{User: &user.DefaultInfo{Name: "bob"}, ResourceRequest: true, Namespace: "kittensandponies"}
    	aliceRidiculousAttr := authorizer.AttributesRecord{
    		User:            &user.DefaultInfo{Name: "alice"},
    		ResourceRequest: true,
    		Verb:            strings.Repeat("v", 2000),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  4. src/os/readfrom_linux_test.go

    		}
    	} else {
    		r = src
    	}
    	// Now call ReadFrom (through io.Copy), which will hopefully call poll.Splice
    	n, err := io.Copy(dst, r)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// We should have called poll.Splice with the right file descriptor arguments.
    	if n > 0 && !hook.called {
    		t.Fatal("expected to called poll.Splice")
    	}
    	if hook.called && hook.dstfd != int(dst.Fd()) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  5. src/runtime/callers_test.go

    	for k := range m {
    		seen = append(seen, k)
    	}
    	t.Logf("functions seen: %s", strings.Join(seen, " "))
    
    	var f3Line int
    	if pan {
    		f3Line = 24
    	} else {
    		f3Line = 27
    	}
    	want := []struct {
    		name string
    		line int
    	}{
    		{"f1", 15},
    		{"f2", 19},
    		{"f3", f3Line},
    	}
    	for _, w := range want {
    		if got := m["runtime_test."+w.name]; got != w.line {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 21:36:31 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/builtins.go

    		}
    
    	case _SliceData:
    		// unsafe.SliceData(slice []T) *T
    		check.verifyVersionf(call.Fun, go1_20, "unsafe.SliceData")
    
    		slice, _ := coreType(x.typ).(*Slice)
    		if slice == nil {
    			check.errorf(x, InvalidUnsafeSliceData, invalidArg+"%s is not a slice", x)
    			return
    		}
    
    		x.mode = value
    		x.typ = NewPointer(slice.elem)
    		if check.recordTypes() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  7. src/net/splice_linux_test.go

    	clientDown, serverDown := spawnTestSocketPair(t, "tcp")
    	defer clientDown.Close()
    	defer serverDown.Close()
    	// If splice called poll.Splice here, we'd get err == syscall.EINVAL
    	// and handled == false.  If poll.Splice gets an EINVAL on the first
    	// try, it assumes the kernel it's running on doesn't support splice
    	// for unix sockets and returns handled == false. This works for our
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildOptionsIntegrationTest.groovy

            configurationCache.assertStateStored()
            problems.assertResultHasProblems(result) {
                withNoInputs()
            }
    
            when:
            printString "alice"
    
            then:
            output.count("The string is alice") == 1
            configurationCache.assertStateLoaded()
    
            when:
            printString "bob"
    
            then:
            output.count("The string is bob") == 1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 28K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1beta1_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	aliceAttr := authorizer.AttributesRecord{User: &user.DefaultInfo{Name: "alice"}}
    	bobAttr := authorizer.AttributesRecord{User: &user.DefaultInfo{Name: "bob"}}
    	aliceRidiculousAttr := authorizer.AttributesRecord{
    		User:            &user.DefaultInfo{Name: "alice"},
    		ResourceRequest: true,
    		Verb:            strings.Repeat("v", 2000),
    		APIGroup:        strings.Repeat("g", 2000),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 22:41:27 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass_test.cc

      Output slice = ops::Slice(root.WithOpName("slice"), input, begin, size);
      root.graph()->AddControlEdge(control_pred.node(), slice.node());
    
      std::unique_ptr<Graph> result;
      TF_ASSERT_OK(IncreaseDynamismForAutoJit(root, &result));
    
      Node* static_shaped_slice = testing::FindNodeByName(
          result.get(), "slice/static_shaped_slice/static_shaped_slice");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 18.3K bytes
    - Viewed (0)
Back to top