Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 151 for nelem (0.16 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/mkerrors.sh

    	printf("var errorList = [...]struct {\n");
    	printf("\tnum  syscall.Errno\n");
    	printf("\tname string\n");
    	printf("\tdesc string\n");
    	printf("} {\n");
    	qsort(errors, nelem(errors), sizeof errors[0], tuplecmp);
    	for(i=0; i<nelem(errors); i++) {
    		e = errors[i].num;
    		if(i > 0 && errors[i-1].num == e)
    			continue;
    		strncpy(buf, strerror(e), sizeof(buf) - 1);
    		buf[sizeof(buf) - 1] = '\0';
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  2. src/embed/embed.go

    	//	q/s/u
    	//	q/v
    	//	w
    	//
    	// is actually sorted as:
    	//
    	//	p       # dir=.    elem=p
    	//	q/      # dir=.    elem=q
    	//	w/      # dir=.    elem=w
    	//	q/r     # dir=q    elem=r
    	//	q/s/    # dir=q    elem=s
    	//	q/v     # dir=q    elem=v
    	//	q/s/t   # dir=q/s  elem=t
    	//	q/s/u   # dir=q/s  elem=u
    	//
    	// This order brings directory contents together in contiguous sections
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:42:51 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  3. src/runtime/mgcsweep.go

    		// more detail.
    		print("runtime: nelems=", s.nelems, " nalloc=", nalloc, " previous allocCount=", s.allocCount, " nfreed=", nfreed, "\n")
    		throw("sweep increased allocation count")
    	}
    
    	s.allocCount = nalloc
    	s.freeindex = 0 // reset allocation index to start of span.
    	s.freeIndexForScan = 0
    	if traceEnabled() {
    		getg().m.p.ptr().trace.reclaimed += uintptr(nfreed) * s.elemsize
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:52:18 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  4. pkg/config/schema/collections/collections.gen.go

    			"v1",
    		},
    		Proto: "istio.security.v1beta1.AuthorizationPolicy", StatusProto: "istio.meta.v1alpha1.IstioStatus",
    		ReflectType: reflect.TypeOf(&istioioapisecurityv1beta1.AuthorizationPolicy{}).Elem(), StatusType: reflect.TypeOf(&istioioapimetav1alpha1.IstioStatus{}).Elem(),
    		ProtoPackage: "istio.io/api/security/v1beta1", StatusPackage: "istio.io/api/meta/v1alpha1",
    		ClusterScoped: false,
    		Synthetic:     false,
    		Builtin:       false,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 31.4K bytes
    - Viewed (0)
  5. pkg/config/schema/collections/collections.agent.gen.go

    			"v1",
    		},
    		Proto: "istio.security.v1beta1.AuthorizationPolicy", StatusProto: "istio.meta.v1alpha1.IstioStatus",
    		ReflectType: reflect.TypeOf(&istioioapisecurityv1beta1.AuthorizationPolicy{}).Elem(), StatusType: reflect.TypeOf(&istioioapimetav1alpha1.IstioStatus{}).Elem(),
    		ProtoPackage: "istio.io/api/security/v1beta1", StatusPackage: "istio.io/api/meta/v1alpha1",
    		ClusterScoped: false,
    		Synthetic:     false,
    		Builtin:       false,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  6. scan.go

    				if !update {
    					if !isPtr {
    						elem = elem.Elem()
    					}
    					if isArrayKind {
    						if reflectValue.Len() >= int(db.RowsAffected) {
    							reflectValue.Index(int(db.RowsAffected - 1)).Set(elem)
    						}
    					} else {
    						reflectValue = reflect.Append(reflectValue, elem)
    					}
    				}
    			}
    
    			if !update {
    				db.Statement.ReflectValue.Set(reflectValue)
    			}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10K bytes
    - Viewed (0)
  7. src/go/types/subst.go

    			return subst.check.newAliasInstance(subst.pos, t.orig, targs, subst.ctxt)
    		}
    
    	case *Array:
    		elem := subst.typOrNil(t.elem)
    		if elem != t.elem {
    			return &Array{len: t.len, elem: elem}
    		}
    
    	case *Slice:
    		elem := subst.typOrNil(t.elem)
    		if elem != t.elem {
    			return &Slice{elem: elem}
    		}
    
    	case *Struct:
    		if fields, copied := subst.varList(t.fields); copied {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. src/go/types/index.go

    			case *Array:
    				l = t.len
    				e = t.elem
    				if x.mode != variable {
    					mode = value
    				}
    			case *Pointer:
    				if t, _ := under(t.base).(*Array); t != nil {
    					l = t.len
    					e = t.elem
    				}
    			case *Slice:
    				e = t.elem
    			case *Map:
    				k = t.key
    				e = t.elem
    			}
    			if e == nil {
    				return false
    			}
    			if elem == nil {
    				// first type
    				length = l
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:05 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  9. callbacks/preload.go

    	}
    
    	for i := 0; i < reflectResults.Len(); i++ {
    		elem := reflectResults.Index(i)
    		for idx, field := range relForeignFields {
    			fieldValues[idx], _ = field.ValueOf(tx.Statement.Context, elem)
    		}
    
    		datas, ok := identityMap[utils.ToStringKey(fieldValues...)]
    		if !ok {
    			return fmt.Errorf("failed to assign association %#v, make sure foreign fields exists", elem.Interface())
    		}
    
    		for _, data := range datas {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. schema/field.go

    					}
    
    					fieldValue.Elem().Set(reflectV.Convert(fieldType))
    					return
    				}
    			}
    
    			if reflectV.Kind() == reflect.Ptr {
    				if reflectV.IsNil() {
    					field.ReflectValueOf(ctx, value).Set(reflect.New(field.FieldType).Elem())
    				} else if reflectV.Type().Elem().AssignableTo(field.FieldType) {
    					field.ReflectValueOf(ctx, value).Set(reflectV.Elem())
    					return
    				} else {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 15 03:20:20 UTC 2024
    - 32K bytes
    - Viewed (0)
Back to top