Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 79 for IntPtr (0.11 sec)

  1. src/cmd/compile/internal/ssa/rewritedec.go

    	for {
    		t := v.Type
    		ptr := v_0
    		mem := v_1
    		if !(t.IsString()) {
    			break
    		}
    		v.reset(OpStringMake)
    		v0 := b.NewValue0(v.Pos, OpLoad, typ.BytePtr)
    		v0.AddArg2(ptr, mem)
    		v1 := b.NewValue0(v.Pos, OpLoad, typ.Int)
    		v2 := b.NewValue0(v.Pos, OpOffPtr, typ.IntPtr)
    		v2.AuxInt = int64ToAuxInt(config.PtrSize)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:48:31 UTC 2023
    - 24.9K bytes
    - Viewed (0)
  2. cluster/gce/windows/common.psm1

    public static extern IntPtr CreateFileW(
      String lpFileName,
      UInt32 dwDesiredAccess,
      UInt32 dwShareMode,
      IntPtr lpSecurityAttributes,
      UInt32 dwCreationDisposition,
      UInt32 dwFlagsAndAttributes,
      IntPtr hTemplateFile
    );
    
    [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
    public static extern bool SetFilePointer(
      IntPtr hFile,
      Int32  lDistanceToMove,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 19 14:47:38 UTC 2022
    - 25.4K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. pkg/controller/deployment/rolling_test.go

    	"testing"
    
    	apps "k8s.io/api/apps/v1"
    	"k8s.io/apimachinery/pkg/util/intstr"
    	"k8s.io/client-go/kubernetes/fake"
    	core "k8s.io/client-go/testing"
    	"k8s.io/client-go/tools/record"
    	"k8s.io/klog/v2/ktesting"
    )
    
    func TestDeploymentController_reconcileNewReplicaSet(t *testing.T) {
    	tests := []struct {
    		deploymentReplicas  int32
    		maxSurge            intstr.IntOrString
    		oldReplicas         int32
    		newReplicas         int32
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 11K bytes
    - Viewed (0)
  7. pkg/controlplane/controller/kubernetesservice/controller_test.go

    				{Name: "baz", Port: 1000, Protocol: "TCP", TargetPort: intstr.FromInt32(1000)},
    			},
    			serviceType: corev1.ServiceTypeClusterIP,
    			service: &corev1.Service{
    				ObjectMeta: om("foo"),
    				Spec: corev1.ServiceSpec{
    					Ports: []corev1.ServicePort{
    						{Name: "foo", Port: 8080, Protocol: "TCP", TargetPort: intstr.FromInt32(8080)},
    					},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 13 10:41:06 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/zz_generated.conversion.go

    		return err
    	}
    	if err := s.AddConversionFunc((*intstr.IntOrString)(nil), (**intstr.IntOrString)(nil), func(a, b interface{}, scope conversion.Scope) error {
    		return Convert_intstr_IntOrString_To_Pointer_intstr_IntOrString(a.(*intstr.IntOrString), b.(**intstr.IntOrString), scope)
    	}); err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 10:00:25 UTC 2023
    - 21.6K bytes
    - Viewed (0)
Back to top