Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for elem2 (0.05 sec)

  1. callbacks/query.go

    				switch db.Statement.ReflectValue.Kind() {
    				case reflect.Struct:
    					queryFields = db.Statement.ReflectValue.Type() != db.Statement.Schema.ModelType
    				case reflect.Slice:
    					queryFields = db.Statement.ReflectValue.Type().Elem() != db.Statement.Schema.ModelType
    				}
    			}
    
    			if queryFields {
    				stmt := gorm.Statement{DB: db}
    				// smaller struct
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 09:51:44 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go

    			// so we must ensure the value we created is available on the heap (not a problem
    			// for normal usage)
    			if !tt.args.v.CanAddr() {
    				x := reflect.New(tt.args.v.Type())
    				x.Elem().Set(tt.args.v)
    				tt.args.v = x.Elem()
    			}
    			growSlice(tt.args.v, tt.args.maxCapacity, tt.args.sizes...)
    			if tt.cap != tt.args.v.Cap() {
    				t.Errorf("Unexpected capacity: got=%d want=%d", tt.args.v.Cap(), tt.cap)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/liveness/plive.go

    	case types.TSLICE:
    		// struct { byte *array; int len; int cap; }
    		clobberPtr(b, v, offset)
    
    	case types.TARRAY:
    		for i := int64(0); i < t.NumElem(); i++ {
    			clobberWalk(b, v, offset+i*t.Elem().Size(), t.Elem())
    		}
    
    	case types.TSTRUCT:
    		for _, t1 := range t.Fields() {
    			clobberWalk(b, v, offset+t1.Offset, t1.Type)
    		}
    
    	default:
    		base.Fatalf("clobberWalk: unexpected type, %v", t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 15:22:22 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/func.go

    	d := f.SplitSlot(name, ".data", u.Size(), t)
    	return c, d
    }
    
    func (f *Func) SplitSlice(name *LocalSlot) (*LocalSlot, *LocalSlot, *LocalSlot) {
    	ptrType := types.NewPtr(name.Type.Elem())
    	lenType := types.Types[types.TINT]
    	p := f.SplitSlot(name, ".ptr", 0, ptrType)
    	l := f.SplitSlot(name, ".len", ptrType.Size(), lenType)
    	c := f.SplitSlot(name, ".cap", ptrType.Size()+lenType.Size(), lenType)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
Back to top