Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 105 for index (0.05 sec)

  1. src/internal/reflectlite/export_test.go

    func Field(v Value, i int) Value {
    	if v.kind() != Struct {
    		panic(&ValueError{"reflect.Value.Field", v.kind()})
    	}
    	tt := (*structType)(unsafe.Pointer(v.typ()))
    	if uint(i) >= uint(len(tt.Fields)) {
    		panic("reflect: Field index out of range")
    	}
    	field := &tt.Fields[i]
    	typ := field.Typ
    
    	// Inherit permission bits from v, but clear flagEmbedRO.
    	fl := v.flag&(flagStickyRO|flagIndir|flagAddr) | flag(typ.Kind())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/action_string.go

    // Code generated by "stringer -type Action lifecycle.go"; DO NOT EDIT.
    
    package lifecycle
    
    import "strconv"
    
    func _() {
    	// An "invalid array index" compiler error signifies that the constant values have changed.
    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[NoneAction-0]
    	_ = x[DeleteAction-1]
    	_ = x[DeleteVersionAction-2]
    	_ = x[TransitionAction-3]
    	_ = x[TransitionVersionAction-4]
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. src/cmd/cgo/godefs.go

    	//	// +godefs map struct_in_addr6 [16]byte
    	//
    	for _, g := range f.Comments {
    		for _, c := range g.List {
    			i := strings.Index(c.Text, "+godefs map")
    			if i < 0 {
    				continue
    			}
    			s := strings.TrimSpace(c.Text[i+len("+godefs map"):])
    			i = strings.Index(s, " ")
    			if i < 0 {
    				fmt.Fprintf(os.Stderr, "invalid +godefs map comment: %s\n", c.Text)
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/client/listers/apiextensions/v1beta1/customresourcedefinition.go

    	// Objects returned here must be treated as read-only.
    	List(selector labels.Selector) (ret []*v1beta1.CustomResourceDefinition, err error)
    	// Get retrieves the CustomResourceDefinition from the index for a given name.
    	// Objects returned here must be treated as read-only.
    	Get(name string) (*v1beta1.CustomResourceDefinition, error)
    	CustomResourceDefinitionListerExpansion
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 11:15:04 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. src/internal/stringslite/strings.go

    }
    
    func HasSuffix(s, suffix string) bool {
    	return len(s) >= len(suffix) && s[len(s)-len(suffix):] == suffix
    }
    
    func IndexByte(s string, c byte) int {
    	return bytealg.IndexByteString(s, c)
    }
    
    func Index(s, substr string) int {
    	n := len(substr)
    	switch {
    	case n == 0:
    		return 0
    	case n == 1:
    		return IndexByte(s, substr[0])
    	case n == len(s):
    		if substr == s {
    			return 0
    		}
    		return -1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 01:23:42 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. src/internal/abi/rangefuncconsts.go

    const (
    	RF_DONE          = RF_State(iota) // body of loop has exited in a non-panic way
    	RF_READY                          // body of loop has not exited yet, is not running  -- this is not a panic index
    	RF_PANIC                          // body of loop is either currently running, or has panicked
    	RF_EXHAUSTED                      // iterator function return, i.e., sequence is "exhausted"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:04:30 UTC 2024
    - 940 bytes
    - Viewed (0)
  7. pkg/slices/slices.go

    // function on each pair of elements. If the lengths are different,
    // EqualFunc returns false. Otherwise, the elements are compared in
    // increasing index order, and the comparison stops at the first index
    // for which eq returns false.
    func EqualFunc[E1, E2 comparable](s1 []E1, s2 []E2, eq func(E1, E2) bool) bool {
    	return slices.EqualFunc(s1, s2, eq)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 06:28:11 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/syntax/positions.go

    			m = n.Value
    		case *FuncLit:
    			m = n.Body
    		case *ParenExpr:
    			m = n.X
    		case *SelectorExpr:
    			m = n.Sel
    		case *IndexExpr:
    			m = n.Index
    		case *SliceExpr:
    			for i := len(n.Index) - 1; i >= 0; i-- {
    				if x := n.Index[i]; x != nil {
    					m = x
    					continue
    				}
    			}
    			m = n.X
    		case *AssertExpr:
    			m = n.Type
    		case *TypeSwitchGuard:
    			m = n.X
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  9. src/internal/trace/base.go

    func (f frequency) mul(t timestamp) Time {
    	return Time(float64(t) * float64(f))
    }
    
    // stringID is an index into the string table for a generation.
    type stringID uint64
    
    // extraStringID is an index into the extra string table for a generation.
    type extraStringID uint64
    
    // stackID is an index into the stack table for a generation.
    type stackID uint64
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  10. src/internal/coverage/cformat/format.go

    // - a table of functions (file/fname/literal)
    // - a map recording the index/ID of each func encountered so far
    // - a table storing execution count for the coverable units in each func
    type pstate struct {
    	// slice of unique functions
    	funcs []fnfile
    	// maps function to index in slice above (index acts as function ID)
    	funcTable map[fnfile]uint32
    
    	// A table storing coverage counts for each coverable unit.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.7K bytes
    - Viewed (0)
Back to top