Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for setSlot (0.55 sec)

  1. src/reflect/value.go

    	case Complex128:
    		*(*complex128)(v.ptr) = x
    	}
    }
    
    // SetFloat sets v's underlying value to x.
    // It panics if v's Kind is not [Float32] or [Float64], or if [Value.CanSet] returns false.
    func (v Value) SetFloat(x float64) {
    	v.mustBeAssignable()
    	switch k := v.kind(); k {
    	default:
    		panic(&ValueError{"reflect.Value.SetFloat", v.kind()})
    	case Float32:
    		*(*float32)(v.ptr) = float32(x)
    	case Float64:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    			v.SetUint(132)
    		case Uint8:
    			v.SetUint(8)
    		case Uint16:
    			v.SetUint(16)
    		case Uint32:
    			v.SetUint(32)
    		case Uint64:
    			v.SetUint(64)
    		case Float32:
    			v.SetFloat(256.25)
    		case Float64:
    			v.SetFloat(512.125)
    		case Complex64:
    			v.SetComplex(532.125 + 10i)
    		case Complex128:
    			v.SetComplex(564.25 + 1i)
    		case String:
    			v.SetString("stringy cheese")
    		case Bool:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/data.go

    			}
    
    			// make dynimport JMP table for PE object files.
    			tplt := int32(rel.Size())
    			ctxt.loader.SetPlt(targ, tplt)
    
    			if su == nil {
    				su = ctxt.loader.MakeSymbolUpdater(s)
    			}
    			r.SetSym(rel.Sym())
    			r.SetAdd(int64(tplt))
    
    			// jmp *addr
    			switch ctxt.Arch.Family {
    			default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (0)
Back to top