Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 570 for index (0.1 sec)

  1. test/fixedbugs/issue4232.go

    	_ = a[1<<100 : 1<<110] // ERROR "overflows int|integer constant overflow|invalid slice index 1 << 100|index out of bounds"
    
    	var s []int
    	_ = s[-1]  // ERROR "invalid slice index -1|index .*out of bounds|must not be negative"
    	_ = s[-1:] // ERROR "invalid slice index -1|index .*out of bounds|must not be negative"
    	_ = s[:-1] // ERROR "invalid slice index -1|index .*out of bounds|must not be negative"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 11 02:26:58 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/net/route/interface.go

    package route
    
    // An InterfaceMessage represents an interface message.
    type InterfaceMessage struct {
    	Version int    // message version
    	Type    int    // message type
    	Flags   int    // interface flags
    	Index   int    // interface index
    	Name    string // interface name
    	Addrs   []Addr // addresses
    
    	extOff int    // offset of header extension
    	raw    []byte // raw message
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. src/cmd/internal/src/xpos.go

    // For positions with different bases, ordering is by base index.
    func (p XPos) Before(q XPos) bool {
    	n, m := p.index, q.index
    	return n < m || n == m && p.lico < q.lico
    }
    
    // SameFile reports whether p and q are positions in the same file.
    func (p XPos) SameFile(q XPos) bool {
    	return p.index == q.index
    }
    
    // SameFileAndLine reports whether p and q are positions on the same line in the same file.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  4. src/reflect/visiblefields_test.go

    	expect: []structField{{
    		name:  "SFGH3",
    		index: []int{0},
    	}, {
    		name:  "SFGH2",
    		index: []int{0, 0},
    	}, {
    		name:  "SFGH1",
    		index: []int{0, 0, 0},
    	}, {
    		name:  "SFGH",
    		index: []int{0, 0, 0, 0},
    	}, {
    		name:  "H",
    		index: []int{0, 0, 0, 0, 2},
    	}, {
    		name:  "SG1",
    		index: []int{1},
    	}, {
    		name:  "SG",
    		index: []int{1, 0},
    	}, {
    		name:  "G",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 08 13:44:41 UTC 2022
    - 5.3K bytes
    - Viewed (0)
  5. src/index/suffixarray/suffixarray.go

    }
    
    // lookupAll returns a slice into the matching region of the index.
    // The runtime is O(log(N)*len(s)).
    func (x *Index) lookupAll(s []byte) ints {
    	// find matching suffix index range [i:j]
    	// find the first index where s would be the prefix
    	i := sort.Search(x.sa.len(), func(i int) bool { return bytes.Compare(x.at(i), s) >= 0 })
    	// starting at i, find the first index at which s is not a prefix
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  6. 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)
  7. src/reflect/visiblefields.go

    				add = false
    			} else if len(w.index) < len(old.Index) {
    				// The old field loses because it's deeper than the new one.
    				old.Name = ""
    			} else {
    				// The old field wins because it's shallower than the new one.
    				add = false
    			}
    		}
    		if add {
    			// Copy the index so that it's not overwritten
    			// by the other appends.
    			f.Index = append([]int(nil), w.index...)
    			w.byName[f.Name] = len(w.fields)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 26 14:24:17 UTC 2021
    - 3K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top