- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 496 for index (0.05 sec)
-
src/container/heap/example_pq_test.go
pq[i], pq[j] = pq[j], pq[i] pq[i].index = i pq[j].index = j } func (pq *PriorityQueue) Push(x any) { n := len(*pq) item := x.(*Item) item.index = n *pq = append(*pq, item) } func (pq *PriorityQueue) Pop() any { old := *pq n := len(old) item := old[n-1] old[n-1] = nil // don't stop the GC from reclaiming the item eventually item.index = -1 // for safety *pq = old[0 : n-1] return item
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 31 20:27:36 UTC 2024 - 2.5K bytes - Viewed (0) -
src/net/interface.go
for _, ifi := range ift { zc.toIndex[ifi.Name] = ifi.Index if _, ok := zc.toName[ifi.Index]; !ok { zc.toName[ifi.Index] = ifi.Name } } return true } func (zc *ipv6ZoneCache) name(index int) string { if index == 0 { return "" } updated := zoneCache.update(nil, false) zoneCache.RLock() name, ok := zoneCache.toName[index] zoneCache.RUnlock() if !ok && !updated {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:53 UTC 2024 - 7.6K bytes - Viewed (0) -
pkg/credentialprovider/keyring.go
} else { key = parsed.Host } dk.creds[key] = append(dk.creds[key], creds) dk.index = append(dk.index, key) } eliminateDupes := sets.NewString(dk.index...) dk.index = eliminateDupes.List() // Update the index used to identify which credentials to use for a given // image. The index is reverse-sorted so more specific paths are matched
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 9.2K bytes - Viewed (0) -
src/cmd/internal/obj/stringer.go
const prefix = "= obj.ABase" index := strings.Index(line, prefix) if index < 0 { continue } // It's on. Start with the header. fmt.Fprintf(out, header, *input, *output, *pkg, *pkg) on = true line = line[:index] } // Strip comments so their text won't defeat our heuristic. index := strings.Index(line, "//") if index > 0 { line = line[:index] } index = strings.Index(line, "/*")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:27 UTC 2023 - 2.2K bytes - Viewed (0) -
pkg/config/analysis/analyzers/util/find_errorline_utils.go
// Required parameters: route rule, route rule index, route index. DestinationHost = "{.spec.%s[%d].route[%d].destination.host}" // Path for mirror host in VirtualService. // Required parameters: http index. MirrorHost = "{.spec.http[%d].mirror.host}" // Path for mirrors host in VirtualService. // Required parameters: http index, mirror index. MirrorsHost = "{.spec.http[%d].mirrors[%d].host}"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Aug 07 15:18:05 UTC 2023 - 4.7K bytes - Viewed (0) -
src/internal/bytealg/index_native.go
//go:build amd64 || arm64 || s390x || ppc64le || ppc64 package bytealg // Index returns the index of the first instance of b in a, or -1 if b is not present in a. // Requires 2 <= len(b) <= MaxLen. // //go:noescape func Index(a, b []byte) int // IndexString returns the index of the first instance of b in a, or -1 if b is not present in a. // Requires 2 <= len(b) <= MaxLen. // //go:noescape
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 02 22:56:35 UTC 2023 - 590 bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue45635.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 615 bytes - Viewed (0) -
pilot/pkg/serviceregistry/util/workloadinstances/index_test.go
Address: "2.2.2.2", Labels: map[string]string{"app": "wle"}, }, } index := NewIndex() // test update index.Insert(wi1) index.Insert(wi2) index.Insert(wi3) index.Insert(wi4) // test search by service selector actual := FindAllInIndex(index, ByServiceSelector(selector.Namespace, labels.Instance{"app": "wle"})) want := []*model.WorkloadInstance{wi1, wi2}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/text/internal/tag/tag.go
// considered for the search and the first match in Index will be returned. func (s Index) Index(key []byte) int { n := len(key) // search the index of the first entry with an equal or higher value than // key in s. index := sort.Search(len(s)/4, func(i int) bool { return cmp(s[i*4:i*4+n], key) != -1 }) i := index * 4 if cmp(s[i:i+len(key)], key) != 0 { return -1 } return index }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 2.4K bytes - Viewed (0) -
pkg/registry/rbac/validation/rule_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 7.9K bytes - Viewed (0)