Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,062 for intPtr (0.14 sec)

  1. src/cmd/compile/internal/ssa/_gen/dec.rules

        (Load <typ.Int>
          (OffPtr <typ.IntPtr> [config.PtrSize] ptr)
          mem)
        (Load <typ.Int>
          (OffPtr <typ.IntPtr> [2*config.PtrSize] ptr)
          mem))
    (Store {t} dst (SliceMake ptr len cap) mem) =>
      (Store {typ.Int}
        (OffPtr <typ.IntPtr> [2*config.PtrSize] dst)
        cap
        (Store {typ.Int}
          (OffPtr <typ.IntPtr> [config.PtrSize] dst)
          len
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:48:31 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_server_journal_test.go

    		{name: "boot out of range", Services: []string{service1}, options: options{Boot: intPtr(1)}, wantErr: true},
    		{name: "tailLines", Services: []string{service1}, options: options{TailLines: intPtr(100)}},
    		{name: "tailLines out of range", Services: []string{service1}, options: options{TailLines: intPtr(100000)}},
    	}
    	for _, tt := range tests {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 10 22:27:44 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/cmd/compile/internal/ssa/fuse_test.go

    		Bloc("entry",
    			Valu("mem", OpInitMem, types.TypeMem, 0, nil),
    			Valu("c1", OpArg, c.config.Types.Bool, 0, nil),
    			Valu("p", OpArg, c.config.Types.IntPtr, 0, nil),
    			If("c1", "z0", "exit")),
    		Bloc("z0",
    			Valu("nilcheck", OpNilCheck, c.config.Types.IntPtr, 0, nil, "p", "mem"),
    			Goto("exit")),
    		Bloc("exit",
    			Exit("mem"),
    		))
    	CheckFunc(fun.f)
    	fuseLate(fun.f)
    	z0, ok := fun.blocks["z0"]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. src/cmd/compile/internal/ssagen/ssa.go

    			idx := s.newValue2(and, typs.Uintptr, s.variable(hashVar, typs.Uintptr), mask)
    			idx = s.newValue2(mul, typs.Uintptr, idx, s.uintptrConstant(uint64(3*s.config.PtrSize)))
    			e := s.newValue2(ssa.OpAddPtr, typs.UintptrPtr, entries, idx)
    			//   hash++
    			s.vars[hashVar] = s.newValue2(add, typs.Uintptr, s.variable(hashVar, typs.Uintptr), s.uintptrConstant(1))
    
    			// Look for a cache hit.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr.go

    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)
    }
    
    func (intstr *IntOrString) UnmarshalCBOR(value []byte) error {
    	if err := cbor.Unmarshal(value, &intstr.StrVal); err == nil {
    		intstr.Type = String
    		return 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. 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)
Back to top