Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for IntPtr (0.12 sec)

  1. src/database/sql/convert_test.go

    	}
    }
    
    func intPtrValue(intptr any) any {
    	return reflect.Indirect(reflect.Indirect(reflect.ValueOf(intptr))).Int()
    }
    
    func intValue(intptr any) int64 {
    	return reflect.Indirect(reflect.ValueOf(intptr)).Int()
    }
    
    func uintValue(intptr any) uint64 {
    	return reflect.Indirect(reflect.ValueOf(intptr)).Uint()
    }
    
    func float64Value(ptr any) float64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 20:23:22 UTC 2024
    - 17K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/config.go

    	Float64    *types.Type
    	UInt       *types.Type
    	Uintptr    *types.Type
    	String     *types.Type
    	BytePtr    *types.Type // TODO: use unsafe.Pointer instead?
    	Int32Ptr   *types.Type
    	UInt32Ptr  *types.Type
    	IntPtr     *types.Type
    	UintptrPtr *types.Type
    	Float32Ptr *types.Type
    	Float64Ptr *types.Type
    	BytePtrPtr *types.Type
    }
    
    // NewTypes creates and populates a Types.
    func NewTypes() *Types {
    	t := new(Types)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/test.go

    } test9557bar = { 42 };
    struct issue9557_t *issue9557foo = &test9557bar;
    
    // issue 10303
    // Pointers passed to C were not marked as escaping (bug in cgo).
    
    typedef int *intptr;
    
    void setintstar(int *x) {
    	*x = 1;
    }
    
    void setintptr(intptr x) {
    	*x = 1;
    }
    
    void setvoidptr(void *x) {
    	*(int*)x = 1;
    }
    
    typedef struct Struct Struct;
    struct Struct {
    	int *P;
    };
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  4. pkg/kubelet/lifecycle/handlers_test.go

    	tests := []struct {
    		Name        string
    		Port        intstr.IntOrString
    		ExpectError bool
    		Expected    string
    	}{
    		{
    			Name:     "consistent/with port",
    			Port:     intstr.FromString("70"),
    			Expected: "https://foo:70/bar",
    		}, {
    			Name:        "consistent/without port",
    			Port:        intstr.FromString(""),
    			ExpectError: true,
    		},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  5. pkg/controller/daemon/update_test.go

    	ds.Spec.Template.Spec.Containers[0].Image = "foo2/bar2"
    	ds.Spec.UpdateStrategy.Type = apps.RollingUpdateDaemonSetStrategyType
    	intStr := intstr.FromInt32(int32(maxUnavailable))
    	ds.Spec.UpdateStrategy.RollingUpdate = &apps.RollingUpdateDaemonSet{MaxUnavailable: &intStr}
    	manager.dsStore.Update(ds)
    
    	clearExpectations(t, manager, ds, podControl)
    	expectSyncDaemonSets(t, manager, ds, podControl, 0, maxUnavailable, 0)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Feb 10 21:10:35 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  6. pkg/apis/apps/v1beta1/defaults_test.go

    	_ "k8s.io/kubernetes/pkg/apis/core/install"
    	"k8s.io/kubernetes/pkg/features"
    	"k8s.io/utils/ptr"
    )
    
    func TestSetDefaultDeployment(t *testing.T) {
    	defaultIntOrString := intstr.FromString("25%")
    	differentIntOrString := intstr.FromInt32(5)
    	period := int64(v1.DefaultTerminationGracePeriodSeconds)
    	defaultTemplate := v1.PodTemplateSpec{
    		Spec: v1.PodSpec{
    			DNSPolicy:                     v1.DNSClusterFirst,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  7. pkg/apis/apps/v1beta2/defaults_test.go

    	"k8s.io/kubernetes/pkg/features"
    	"k8s.io/utils/ptr"
    )
    
    func TestSetDefaultDaemonSetSpec(t *testing.T) {
    	defaultLabels := map[string]string{"foo": "bar"}
    	maxUnavailable := intstr.FromInt32(1)
    	maxSurge := intstr.FromInt32(0)
    	period := int64(v1.DefaultTerminationGracePeriodSeconds)
    	defaultTemplate := v1.PodTemplateSpec{
    		Spec: v1.PodSpec{
    			DNSPolicy:                     v1.DNSClusterFirst,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  8. pkg/apis/apps/v1/defaults_test.go

    	"k8s.io/kubernetes/pkg/features"
    	"k8s.io/utils/ptr"
    )
    
    func TestSetDefaultDaemonSetSpec(t *testing.T) {
    	defaultLabels := map[string]string{"foo": "bar"}
    	maxUnavailable := intstr.FromInt32(1)
    	maxSurge := intstr.FromInt32(0)
    	period := int64(v1.DefaultTerminationGracePeriodSeconds)
    	defaultTemplate := v1.PodTemplateSpec{
    		Spec: v1.PodSpec{
    			DNSPolicy:                     v1.DNSClusterFirst,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  9. pkg/registry/policy/poddisruptionbudget/strategy_test.go

    	// Changing MinAvailable?  OK
    	newMinAvailable := intstr.FromString("28%")
    	newPdb.Spec.MinAvailable = &newMinAvailable
    	Strategy.PrepareForUpdate(ctx, newPdb, pdb)
    	errs = Strategy.ValidateUpdate(ctx, newPdb, pdb)
    	if len(errs) != 0 {
    		t.Errorf("Expected no error updating MinAvailable on poddisruptionbudgets.")
    	}
    
    	// Changing MinAvailable to MaxAvailable? OK
    	maxUnavailable := intstr.FromString("28%")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  10. istioctl/pkg/describe/describe_test.go

    	"github.com/google/go-cmp/cmp"
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	klabels "k8s.io/apimachinery/pkg/labels"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/util/intstr"
    
    	apiannotation "istio.io/api/annotation"
    	v1alpha32 "istio.io/api/networking/v1alpha3"
    	"istio.io/client-go/pkg/apis/networking/v1alpha3"
    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/istioctl/pkg/util/configdump"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 09:54:01 UTC 2024
    - 30.4K bytes
    - Viewed (0)
Back to top