Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 390 for intPtr (0.13 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. 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)
  3. src/cmd/compile/internal/ssa/config.go

    	UInt64     *types.Type
    	Int        *types.Type
    	Float32    *types.Type
    	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
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/test.go

    	s.P = &si
    	C.setstruct(s)
    
    	if uintptr(unsafe.Pointer(&x))&^0xfff == uintptr(unsafe.Pointer(&z))&^0xfff {
    		t.Error("C int* argument on stack")
    	}
    	if uintptr(unsafe.Pointer(&y))&^0xfff == uintptr(unsafe.Pointer(&z))&^0xfff {
    		t.Error("C intptr argument on stack")
    	}
    	if uintptr(unsafe.Pointer(&v))&^0xfff == uintptr(unsafe.Pointer(&z))&^0xfff {
    		t.Error("C void* argument on stack")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  5. src/encoding/gob/codec_test.go

    		state := newDecodeStateFromData(unsignedResult)
    		execDec(instr, state, t, reflect.ValueOf(&data))
    		if data != 17 {
    			t.Errorf("uint32 a = %v not 17", data)
    		}
    	}
    
    	// uintptr
    	{
    		var data uintptr
    		instr := &decInstr{decOpTable[reflect.Uintptr], 6, nil, ovfl}
    		state := newDecodeStateFromData(unsignedResult)
    		execDec(instr, state, t, reflect.ValueOf(&data))
    		if data != 17 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 19 23:03:14 UTC 2023
    - 36.9K bytes
    - Viewed (0)
  6. src/encoding/gob/decode.go

    			break
    		}
    		if state.fieldnum >= len(engine.instr)-delta { // subtract to compare without overflow
    			error_(errRange)
    		}
    		fieldnum := state.fieldnum + delta
    		instr := &engine.instr[fieldnum]
    		var field reflect.Value
    		if instr.index != nil {
    			// Otherwise the field is unknown to us and instr.op is an ignore op.
    			field = value.FieldByIndex(instr.index)
    			if field.Kind() == reflect.Pointer {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:10:23 UTC 2023
    - 40.1K bytes
    - Viewed (0)
  7. 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)
  8. src/encoding/gob/encode.go

    	defer enc.freeEncoderState(state)
    	state.fieldnum = -1
    	for i := 0; i < len(engine.instr); i++ {
    		instr := &engine.instr[i]
    		if i >= value.NumField() {
    			// encStructTerminator
    			instr.op(instr, state, reflect.Value{})
    			break
    		}
    		field := value.FieldByIndex(instr.index)
    		if instr.indir > 0 {
    			field = encIndirect(field, instr.indir)
    			// TODO: Is field guaranteed valid? If so we could avoid this check.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 19K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top