Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 168 for Indexes (5.03 sec)

  1. src/slices/slices_test.go

    		{"with negative second index", []int{42}, 1, -1},
    		{"with out-of-bounds first index", []int{42}, 2, 3},
    		{"with out-of-bounds second index", []int{42}, 0, 2},
    		{"with out-of-bounds both indexes", []int{42}, 2, 2},
    		{"with invalid i>j", []int{42}, 1, 0},
    		{"s[i:j] is valid and j > len(s)", s, 0, 4},
    		{"s[i:j] is valid and i == j > len(s)", s, 3, 3},
    	} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:06 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  2. src/fmt/doc.go

    formatting methods such as Error or String on unexported fields.
    
    # Explicit argument indexes
    
    In [Printf], [Sprintf], and [Fprintf], the default behavior is for each
    formatting verb to format successive arguments passed in the call.
    However, the notation [n] immediately before the verb indicates that the
    nth one-indexed argument is to be formatted instead. The same notation
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:56:20 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  3. cmd/endpoint.go

    				continue
    			}
    			foundSet.Add(endpoint.Hostname())
    		}
    	}
    	return foundSet.ToSlice()
    }
    
    // hostsSorted will return all hosts found.
    // The LOCAL host will be nil, but the indexes of all hosts should
    // remain consistent across the cluster.
    func (l EndpointServerPools) hostsSorted() []*xnet.Host {
    	peers, localPeer := l.peers()
    	sort.Strings(peers)
    	hosts := make([]*xnet.Host, len(peers))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  4. src/image/gif/writer_test.go

    	}
    
    	if g0.LoopCount != g1.LoopCount {
    		t.Errorf("loop counts differ: %d and %d", g0.LoopCount, g1.LoopCount)
    	}
    	if backgroundIndex != g1.BackgroundIndex {
    		t.Errorf("background indexes differ: %d and %d", backgroundIndex, g1.BackgroundIndex)
    	}
    	if len(g0.Image) != len(g1.Image) {
    		t.Fatalf("image lengths differ: %d and %d", len(g0.Image), len(g1.Image))
    	}
    	if len(g1.Image) != len(g1.Delay) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. src/image/gif/reader.go

    	if err := br.close(); err == errTooMuch {
    		return errTooMuch
    	} else if err != nil {
    		return fmt.Errorf("gif: reading image data: %v", err)
    	}
    
    	// Check that the color indexes are inside the palette.
    	if len(m.Palette) < 256 {
    		for _, pixel := range m.Pix {
    			if int(pixel) >= len(m.Palette) {
    				return errBadPixel
    			}
    		}
    	}
    
    	// Undo the interlacing if necessary.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:15:54 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  6. src/image/jpeg/scan.go

    		// the values of Cs_1 through Cs_(j-1)". Since we have previously
    		// verified that a frame's component identifiers (C_i values in section
    		// B.2.2) are unique, it suffices to check that the implicit indexes
    		// into d.comp are unique.
    		for j := 0; j < i; j++ {
    			if scan[i].compIndex == scan[j].compIndex {
    				return FormatError("repeated component selector")
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 00:46:29 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/value.go

    		return false
    	}
    	switch t.Kind() {
    	case types.TARRAY:
    		// We can't do larger arrays because dynamic indexing is
    		// not supported on SSA variables.
    		// TODO: allow if all indexes are constant.
    		if t.NumElem() <= 1 {
    			return CanSSA(t.Elem())
    		}
    		return false
    	case types.TSTRUCT:
    		if t.NumFields() > MaxStruct {
    			return false
    		}
    		for _, t1 := range t.Fields() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:40:22 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  8. src/cmd/vendor/rsc.io/markdown/inline.go

    	// Links take priority over other emphasis, so the emphasis must be delayed.
    	p.s = s
    	p.list = nil
    	p.emitted = 0
    	var opens []int // indexes of open ![ and [ Plains in p.list
    	var lastLinkOpen int
    	backticks := false
    	i := 0
    	for i < len(s) {
    		var parser func(*parseState, string, int) (Inline, int, int, bool)
    		switch s[i] {
    		case '\\':
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  9. cmd/storage-rest-client.go

    	endpoint   Endpoint
    	restClient *rest.Client
    	gridConn   *grid.Subroute
    	diskID     atomic.Pointer[string]
    
    	diskInfoCache *cachevalue.Cache[DiskInfo]
    }
    
    // Retrieve location indexes.
    func (client *storageRESTClient) GetDiskLoc() (poolIdx, setIdx, diskIdx int) {
    	return client.endpoint.PoolIdx, client.endpoint.SetIdx, client.endpoint.DiskIdx
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  10. pkg/controller/resourceclaim/controller.go

    	templateLister  resourcev1alpha2listers.ResourceClaimTemplateLister
    	templatesSynced cache.InformerSynced
    
    	// podIndexer has the common PodResourceClaim indexer indexer installed To
    	// limit iteration over pods to those of interest.
    	podIndexer cache.Indexer
    
    	// recorder is used to record events in the API server
    	recorder record.EventRecorder
    
    	queue workqueue.TypedRateLimitingInterface[string]
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 37.1K bytes
    - Viewed (0)
Back to top