Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 68 for SLICE (1.11 sec)

  1. src/cmd/compile/internal/ssa/looprotate.go

    	// fact that we only identify reducible loops.
    	j := 0
    	// Some blocks that are not part of a loop may be placed
    	// between loop blocks. In order to avoid these blocks from
    	// being overwritten, use a temporary slice.
    	oldOrder := f.Cache.allocBlockSlice(len(f.Blocks))
    	defer f.Cache.freeBlockSlice(oldOrder)
    	copy(oldOrder, f.Blocks)
    	for _, b := range oldOrder {
    		if _, ok := move[b.ID]; ok {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher_test.go

    			webhook:  "test-webhook",
    			patch:    []byte("[{}]"),
    			expected: `{"configuration":"test-config","webhook":"test-webhook","patch":[{}],"patchType":"JSONPatch"}`,
    		},
    		{
    			name:     "empty slice patch",
    			config:   "test-config",
    			webhook:  "test-webhook",
    			patch:    []byte("[]"),
    			expected: `{"configuration":"test-config","webhook":"test-webhook","patch":[],"patchType":"JSONPatch"}`,
    		},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/ztunnel/configdump/workload.go

    	for _, wl := range zDump.Workloads {
    		if filter.Verify(wl) {
    			verifiedWorkloads = append(verifiedWorkloads, wl)
    		}
    	}
    
    	// Sort by name, node
    	sort.Slice(verifiedWorkloads, func(i, j int) bool {
    		in := verifiedWorkloads[i].Namespace + "." + verifiedWorkloads[i].Name
    		jn := verifiedWorkloads[j].Namespace + "." + verifiedWorkloads[j].Name
    		if in != jn {
    			return in < jn
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 20:18:34 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. src/os/exec_windows.go

    	if len(cmd) == 0 {
    		arg0, _ := Executable()
    		Args = []string{arg0}
    	} else {
    		Args = commandLineToArgv(cmd)
    	}
    }
    
    // appendBSBytes appends n '\\' bytes to b and returns the resulting slice.
    func appendBSBytes(b []byte, n int) []byte {
    	for ; n > 0; n-- {
    		b = append(b, '\\')
    	}
    	return b
    }
    
    // readNextArg splits command line string cmd into next
    // argument and command line remainder.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/demo/demoUtils.kt

                        "Parsing error: " + failure.message
                    )
                    is UnsupportedConstruct -> println(
                        failure.languageFeature.toString() + " in " + parsedTree.wrappedCode.slice(parsedTree.originalCodeOffset..parsedTree.originalCodeOffset + 100)
                    )
                    is MultipleFailuresResult -> failure.failures.forEach { printFailures(it) }
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 14:27:23 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. src/math/big/floatmarsh.go

    	n := 0          // number of mantissa words
    	if x.form == finite {
    		// add space for mantissa and exponent
    		n = int((x.prec + (_W - 1)) / _W) // required mantissa length in words for given precision
    		// actual mantissa slice could be shorter (trailing 0's) or longer (unused bits):
    		// - if shorter, only encode the words present
    		// - if longer, cut off unused words when encoding in bytes
    		//   (in practice, this should never happen since rounding
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. src/os/dir_unix.go

    	}
    
    	// Change the meaning of n for the implementation below.
    	//
    	// The n above was for the public interface of "if n <= 0,
    	// Readdir returns all the FileInfo from the directory in a
    	// single slice".
    	//
    	// But below, we use only negative to mean looping until the
    	// end and positive to mean bounded, with positive
    	// terminating at 0.
    	if n == 0 {
    		n = -1
    	}
    
    	for n != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:11:45 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/features/features.go

    func Supports(featureList FeatureList, featureName string) bool {
    	for k := range featureList {
    		if featureName == k {
    			return true
    		}
    	}
    	return false
    }
    
    // KnownFeatures returns a slice of strings describing the FeatureList features.
    func KnownFeatures(f *FeatureList) []string {
    	var known []string
    	for k, v := range *f {
    		if v.HiddenInHelpText {
    			continue
    		}
    
    		pre := ""
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 13:55:11 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. pkg/test/framework/components/environment/kube/kube.go

    	return out
    }
    
    func (e *Environment) Clusters() cluster.Clusters {
    	return e.AllClusters().MeshClusters()
    }
    
    // ClustersByNetwork returns an inverse mapping of the network topolgoy to a slice of clusters in a given network.
    func (e *Environment) ClustersByNetwork() map[string][]cluster.Cluster {
    	out := make(map[string][]cluster.Cluster)
    	for _, c := range e.Clusters() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. src/internal/coverage/cfile/apis.go

    	// another thread". Thus we can be sure that there will be no
    	// inconsistency when reading the counter array from the thread
    	// running ClearCounters.
    
    	for _, c := range cl {
    		sd := unsafe.Slice((*atomic.Uint32)(unsafe.Pointer(c.Counters)), int(c.Len))
    		for i := 0; i < len(sd); i++ {
    			// Skip ahead until the next non-zero value.
    			sdi := sd[i].Load()
    			if sdi == 0 {
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top