Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 130 for ptrval (0.13 sec)

  1. src/reflect/deepequal.go

    		// For Slice or Interface, flagIndir is always set,
    		// and using v.ptr suffices.
    		ptrval := func(v Value) unsafe.Pointer {
    			switch v.Kind() {
    			case Pointer, Map:
    				return v.pointer()
    			default:
    				return v.ptr
    			}
    		}
    		addr1 := ptrval(v1)
    		addr2 := ptrval(v2)
    		if uintptr(addr1) > uintptr(addr2) {
    			// Canonicalize order to reduce number of entries in visited.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:30 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. src/flag/flag.go

    	ptrVal := reflect.ValueOf(p)
    	if ptrVal.Kind() != reflect.Ptr {
    		panic("variable value type must be a pointer")
    	}
    	defVal := reflect.ValueOf(val)
    	if defVal.Kind() == reflect.Ptr {
    		defVal = defVal.Elem()
    	}
    	if defVal.Type() != ptrVal.Type().Elem() {
    		panic(fmt.Sprintf("default type does not match variable type: %v != %v", defVal.Type(), ptrVal.Type().Elem()))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 39.7K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/docs/userguide/img/plugin-portal-plugin-page.png

    plugin-portal-plugin-page.png...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 18:40:53 UTC 2024
    - 199.7K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docs/userguide/img/plugin-portal-page.png

    plugin-portal-page.png...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 18:40:53 UTC 2024
    - 376K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/userguide/img/plugin-portal-api-keys.png

    plugin-portal-api-keys.png...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 18:40:53 UTC 2024
    - 71K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/userguide/img/plugin-portal-registration-page.png

    plugin-portal-registration-page.png...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 18:40:53 UTC 2024
    - 67.1K bytes
    - Viewed (0)
  7. src/runtime/runtime-gdb_test.go

    	mapvar["abc"] = "def"
    	mapvar["ghi"] = "jkl"
    	slicemap["a"] = []string{"b","c","d"}
        slicemap["e"] = []string{"f","g","h"}
    	strvar := "abc"
    	ptrvar := &strvar
    	slicevar := make([]string, 0, 16)
    	slicevar = append(slicevar, mapvar["abc"])
    	fmt.Println("hi")
    	runtime.KeepAlive(ptrvar)
    	_ = ptrvar // set breakpoint here
    	gslice = slicevar
    	fmt.Printf("%v, %v, %v\n", slicemap, <-chanint, <-chanstr)
    	runtime.KeepAlive(mapvar)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr_test.go

    			continue
    		}
    		if value.Type == String && test.output.StrVal != value.StrVal {
    			t.Errorf("expected string value %q (%v), but got %q (%v)", test.output.StrVal, test.output, value.StrVal, value)
    		}
    	}
    }
    
    func TestMarshalCBOR(t *testing.T) {
    	for _, tc := range []struct {
    		in            IntOrString
    		want          []byte
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr.go

    	case String:
    		isPercent := false
    		s := intOrStr.StrVal
    		if strings.HasSuffix(s, "%") {
    			isPercent = true
    			s = strings.TrimSuffix(intOrStr.StrVal, "%")
    		} else {
    			return 0, false, fmt.Errorf("invalid type: string is not a percentage")
    		}
    		v, err := strconv.Atoi(s)
    		if err != nil {
    			return 0, false, fmt.Errorf("invalid value %q: %v", intOrStr.StrVal, err)
    		}
    		return int(v), isPercent, nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  10. pkg/kube/apimirror/probe.go

    )
    
    type IntOrString struct {
    	Type   Type
    	IntVal int32
    	StrVal string
    }
    
    // UnmarshalJSON implements the json.Unmarshaller interface.
    func (intstr *IntOrString) UnmarshalJSON(value []byte) error {
    	if value[0] == '"' {
    		intstr.Type = String
    		return json.Unmarshal(value, &intstr.StrVal)
    	}
    	intstr.Type = Int
    	return json.Unmarshal(value, &intstr.IntVal)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top