Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 356 for index (0.14 sec)

  1. src/sort/search.go

    // Search uses binary search to find and return the smallest index i
    // in [0, n) at which f(i) is true, assuming that on the range [0, n),
    // f(i) == true implies f(i+1) == true. That is, Search requires that
    // f is false for some (possibly empty) prefix of the input range [0, n)
    // and then true for the (possibly empty) remainder; Search returns
    // the first true index. If there is no such index, Search returns n.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  2. cmd/erasure-common.go

    	}
    	g := errgroup.WithNErrs(len(disks))
    	// Read files in parallel across disks.
    	for index := range disks {
    		index := index
    		g.Go(func() (err error) {
    			if disks[index] == nil {
    				return errDiskNotFound
    			}
    			return disks[index].ReadMultiple(ctx, req, resps[index])
    		}, index)
    	}
    
    	dataArray := make([]ReadMultipleResp, 0, len(req.Files))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/net/idna/trie13.0.0.go

    	index := int(c >> indexShift)
    	if c&xorBit == 0 {
    		p := index
    		return append(b, mappings[mappingIndex[p]:mappingIndex[p+1]]...)
    	}
    	b = append(b, s...)
    	if c&inlineXOR == inlineXOR {
    		// TODO: support and handle two-byte inline masks
    		b[len(b)-1] ^= byte(index)
    	} else {
    		for p := len(b) - int(xorData[index]); p < len(b); p++ {
    			index++
    			b[p] ^= xorData[index]
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 872 bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/typeparam.go

    	return typ
    }
    
    // Obj returns the type name for the type parameter t.
    func (t *TypeParam) Obj() *TypeName { return t.obj }
    
    // Index returns the index of the type param within its param list, or -1 if
    // the type parameter has not yet been bound to a type.
    func (t *TypeParam) Index() int {
    	return t.index
    }
    
    // Constraint returns the type constraint specified for t.
    func (t *TypeParam) Constraint() Type {
    	return t.bound
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. docs/debugging/reorder-disks/main.go

    	exp := argP.Expand()
    
    	if node == "" {
    		for index, e := range exp {
    			result = append(result, localDisk{index: index, path: strings.Join(e, "")})
    		}
    	} else {
    		for index, e := range exp {
    			u, err := url.Parse(strings.Join(e, ""))
    			if err != nil {
    				return nil, err
    			}
    			if strings.Contains(u.Host, node) {
    				result = append(result, localDisk{index: index, path: u.Path})
    			}
    		}
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  6. src/net/main_test.go

    	}
    
    	ifi := loopbackInterface()
    	if ifi != nil {
    		index := fmt.Sprintf("%v", ifi.Index)
    		resolveTCPAddrTests = append(resolveTCPAddrTests, []resolveTCPAddrTest{
    			{"tcp6", "[fe80::1%" + ifi.Name + "]:1", &TCPAddr{IP: ParseIP("fe80::1"), Port: 1, Zone: zoneCache.name(ifi.Index)}, nil},
    			{"tcp6", "[fe80::1%" + index + "]:2", &TCPAddr{IP: ParseIP("fe80::1"), Port: 2, Zone: index}, nil},
    		}...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  7. src/crypto/md5/gen.go

    func rotate() string {
    	data.a, data.b, data.c, data.d = data.d, data.a, data.b, data.c
    	return "" // no output
    }
    
    func idx(round, index int) int {
    	v := 0
    	switch round {
    	case 1:
    		v = index
    	case 2:
    		v = (1 + 5*index) & 15
    	case 3:
    		v = (5 + 3*index) & 15
    	case 4:
    		v = (7 * index) & 15
    	}
    	return v
    }
    
    func seq(i int) []int {
    	s := make([]int, i)
    	for i := range s {
    		s[i] = i
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/text/unicode/norm/forminfo.go

    func (p Properties) isInert() bool {
    	return p.flags&qcInfoMask == 0 && p.ccc == 0
    }
    
    func (p Properties) multiSegment() bool {
    	return p.index >= firstMulti && p.index < endMulti
    }
    
    func (p Properties) nLeadingNonStarters() uint8 {
    	return p.nLead
    }
    
    func (p Properties) nTrailingNonStarters() uint8 {
    	return uint8(p.flags & 0x03)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/text/internal/match.go

    		if err != nil {
    			ct = t
    		}
    		conf := language.Exact
    		for {
    			if index, ok := m.index[ct]; ok {
    				return ct, index, conf
    			}
    			if ct == language.Und {
    				break
    			}
    			ct = ct.Parent()
    			conf = language.High
    		}
    	}
    	return language.Und, 0, language.No
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/text/internal/language/compact/language.go

    	p := strings.Index(s[1:], "-")
    	if p == -1 {
    		return s[1:], ""
    	}
    	p++
    	return s[1:p], s[p:]
    }
    
    // LanguageID returns an index, where 0 <= index < NumCompactTags, for tags
    // for which data exists in the text repository.The index will change over time
    // and should not be stored in persistent storage. If t does not match a compact
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top