Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 90 for newDir (0.15 sec)

  1. src/cmd/compile/internal/walk/range.go

    		key := ir.NewStarExpr(base.Pos, typecheck.ConvNop(ir.NewSelectorExpr(base.Pos, ir.ODOT, hit, keysym), types.NewPtr(t.Key())))
    		if v1 == nil {
    			body = nil
    		} else if v2 == nil {
    			body = []ir.Node{rangeAssign(nrange, key)}
    		} else {
    			elem := ir.NewStarExpr(base.Pos, typecheck.ConvNop(ir.NewSelectorExpr(base.Pos, ir.ODOT, hit, elemsym), types.NewPtr(t.Elem())))
    			body = []ir.Node{rangeAssign2(nrange, key, elem)}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:33 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/library/cidr.go

    }
    
    func stringToCIDR(arg ref.Val) ref.Val {
    	s, ok := arg.Value().(string)
    	if !ok {
    		return types.MaybeNoSuchOverloadErr(arg)
    	}
    
    	net, err := parseCIDR(s)
    	if err != nil {
    		return types.NewErr("network address parse error during conversion from string: %v", err)
    	}
    
    	return apiservercel.CIDR{
    		Prefix: net,
    	}
    }
    
    func cidrToString(arg ref.Val) ref.Val {
    	cidr, ok := arg.(apiservercel.CIDR)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 12:03:04 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/library/lists.go

    			if result == nil {
    				result = nextCmp
    			} else {
    				cmp := result.Compare(next)
    				if cmp == opPreferCmpResult {
    					result = nextCmp
    				}
    			}
    		}
    		if result == nil {
    			return types.NewErr("%s called on empty list", opName)
    		}
    		return result.(ref.Val)
    	}
    }
    
    func indexOf(list ref.Val, item ref.Val) ref.Val {
    	lister, ok := list.(traits.Lister)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/func.go

    		a = new(LocalSlot)
    		*a = slot // don't escape slot
    		f.CanonicalLocalSlots[slot] = a
    	}
    	return a
    }
    
    func (f *Func) SplitString(name *LocalSlot) (*LocalSlot, *LocalSlot) {
    	ptrType := types.NewPtr(types.Types[types.TUINT8])
    	lenType := types.Types[types.TINT]
    	// Split this string up into two separate variables.
    	p := f.SplitSlot(name, ".ptr", 0, ptrType)
    	l := f.SplitSlot(name, ".len", ptrType.Size(), lenType)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  5. src/runtime/slice.go

    //	newLen = new length (= oldLen + num)
    //	oldCap = original slice's capacity.
    //	   num = number of elements being added
    //	    et = element type
    //
    // return values:
    //
    //	newPtr = pointer to the new backing store
    //	newLen = same value as the argument
    //	newCap = capacity of the new backing store
    //
    // Requires that uint(newLen) > uint(oldCap).
    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. pkg/bootstrap/platform/gcp_test.go

    				GCPClusterURL: "https://container.googleapis.com/v1/projects/pid/locations/location/clusters/cluster",
    			},
    		}, {
    			"should ignore",
    			func() bool { return true },
    			func() (string, error) { return "newPid", nil },
    			func() (string, error) { return "newNpid", nil },
    			func() (string, error) { return "newLocation", nil },
    			func() (string, error) { return "newCluster", nil },
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 15 00:37:33 UTC 2023
    - 17.7K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/noderesources/most_allocated_test.go

    			state := framework.NewCycleState()
    			snapshot := cache.NewSnapshot(test.existingPods, test.nodes)
    			fh, _ := runtime.NewFramework(ctx, nil, nil, runtime.WithSnapshotSharedLister(snapshot))
    
    			p, err := NewFit(ctx,
    				&config.NodeResourcesFitArgs{
    					ScoringStrategy: &config.ScoringStrategy{
    						Type:      config.MostAllocated,
    						Resources: test.resources,
    					},
    				}, fh, plfeature.Features{})
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 16K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types/size.go

    func PtrDataSize(t *Type) int64 {
    	CalcSize(t)
    	x := t.ptrBytes
    	if t.Kind() == TPTR && t.Elem().NotInHeap() {
    		// Note: this is done here instead of when we're setting
    		// the ptrBytes field, because at that time (in NewPtr, usually)
    		// the NotInHeap bit of the element type might not be set yet.
    		x = 0
    	}
    	return x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/phases/certs/certs_test.go

    	cfg := testutil.GetDefaultInternalConfig(t)
    
    	certConfig, err := kubeadmCert.GetConfig(cfg)
    	if err != nil {
    		t.Fatalf("couldn't get cert config: %v", err)
    	}
    
    	csr, _, err := NewCSR(kubeadmCert, cfg)
    
    	if err != nil {
    		t.Errorf("invalid signature on CSR: %v", err)
    	}
    
    	assert.ElementsMatch(t, certConfig.Organization, csr.Subject.Organization, "organizations not equal")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 31 21:49:21 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/noderesources/least_allocated_test.go

    			state := framework.NewCycleState()
    			snapshot := cache.NewSnapshot(test.existingPods, test.nodes)
    			fh, _ := runtime.NewFramework(ctx, nil, nil, runtime.WithSnapshotSharedLister(snapshot))
    
    			p, err := NewFit(
    				ctx,
    				&config.NodeResourcesFitArgs{
    					ScoringStrategy: &config.ScoringStrategy{
    						Type:      config.LeastAllocated,
    						Resources: test.resources,
    					},
    				}, fh, plfeature.Features{})
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 18.8K bytes
    - Viewed (0)
Back to top