Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 1,160 for index (0.24 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/cap_freebsd.go

    		if err != nil {
    			return err
    		}
    		if i >= n {
    			return errors.New("index overflow")
    		}
    		if capidxbit(rights.Rights[i]) != capidxbit(right) {
    			return errors.New("index mismatch")
    		}
    		rights.Rights[i] |= right
    		if capidxbit(rights.Rights[i]) != capidxbit(right) {
    			return errors.New("index mismatch (after assign)")
    		}
    	}
    
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/text/language/match.go

    // other language matched.
    func MatchStrings(m Matcher, lang ...string) (tag Tag, index int) {
    	for _, accept := range lang {
    		desired, _, err := ParseAcceptLanguage(accept)
    		if err != nil {
    			continue
    		}
    		if tag, index, conf := m.Match(desired...); conf != No {
    			return tag, index
    		}
    	}
    	tag, index, _ = m.Match()
    	return
    }
    
    // Matcher is the interface that wraps the Match method.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/internal/typeparams/common.go

    )
    
    // UnpackIndexExpr extracts data from AST nodes that represent index
    // expressions.
    //
    // For an ast.IndexExpr, the resulting indices slice will contain exactly one
    // index expression. For an ast.IndexListExpr (go1.18+), it may have a variable
    // number of index expressions.
    //
    // For nodes that don't represent index expressions, the first return value of
    // UnpackIndexExpr will be nil.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. pkg/config/analysis/incluster/controller.go

    		if err != nil {
    			log.Errorf("In-cluster analysis has failed: %s", err)
    			return
    		}
    		// reorganize messages to map
    		index := map[status.Resource]diag.Messages{}
    		for _, m := range res.Messages {
    			key := status.ResourceFromMetadata(m.Resource.Metadata)
    			index[key] = append(index[key], m)
    		}
    		// if we previously had a message that has been removed, ensure it is removed
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 17:36:47 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  5. pkg/test/echo/server/forwarder/util.go

    	}
    
    	g := e.NewGroup()
    	for index := 0; index < cfg.count; index++ {
    		index := index
    		workFn := func() error {
    			st := time.Now()
    			resp, err := doReq(ctx, cfg, index)
    			if err != nil {
    				fwLog.Debugf("request failed: %v", err)
    				return err
    			}
    			fwLog.Debugf("got resp: %v", resp)
    
    			responsesMu.Lock()
    			responses[index] = resp
    			responseTimes[index] = time.Since(st)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Oct 08 09:39:20 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  6. src/runtime/mspanset.go

    	spineLen  atomic.Uintptr            // Spine array length
    	spineCap  uintptr                   // Spine array cap, accessed under spineLock
    
    	// index is the head and tail of the spanSet in a single field.
    	// The head and the tail both represent an index into the logical
    	// concatenation of all blocks, with the head always behind or
    	// equal to the tail (indicating an empty set). This field is
    	// always accessed atomically.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  7. src/crypto/rsa/pkcs1v15.go

    	// bytes into em.
    	validPS := subtle.ConstantTimeLessOrEq(2+8, index)
    
    	valid = firstByteIsZero & secondByteIsTwo & (^lookingForIndex & 1) & validPS
    	index = subtle.ConstantTimeSelect(valid, index+1, 0)
    	return valid, em, index, nil
    }
    
    // nonZeroRandomBytes fills the given slice with non-zero random octets.
    func nonZeroRandomBytes(s []byte, random io.Reader) (err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:21 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  8. cmd/format-erasure.go

    	g := errgroup.WithNErrs(len(storageDisks))
    
    	// Write `format.json` to all disks.
    	for index := range storageDisks {
    		index := index
    		g.Go(func() error {
    			if formats[index] == nil {
    				return errDiskNotFound
    			}
    			return saveFormatErasure(storageDisks[index], formats[index], "")
    		}, index)
    	}
    
    	// Wait for the routines to finish.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  9. src/cmd/link/internal/loader/loader.go

    // objSym represents a symbol in an object file. It is a tuple of
    // the object and the symbol's local index.
    // For external symbols, objidx is the index of l.extReader (extObj),
    // s is its index into the payload array.
    // {0, 0} represents the nil symbol.
    type objSym struct {
    	objidx uint32 // index of the object (in l.objs array)
    	s      uint32 // local index
    }
    
    type nameVer struct {
    	name string
    	v    int
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:10 UTC 2024
    - 81.5K bytes
    - Viewed (0)
  10. test/for.go

    	for i = range [5]struct{}{} {
    	}
    	assertequal(i, 4, " incorrect index value after range loop")
    
    	i = 0
    	var a1 [5]struct{}
    	for i = range a1 {
    		a1[i] = struct{}{}
    	}
    	assertequal(i, 4, " incorrect index value after array with zero size elem range clear")
    
    	i = 0
    	var a2 [5]int
    	for i = range a2 {
    		a2[i] = 0
    	}
    	assertequal(i, 4, " incorrect index value after array range clear")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 10 16:36:41 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top