Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 270 for ptr (0.03 sec)

  1. src/internal/reflectlite/value.go

    		// Value is indirect, and so is the interface we're making.
    		ptr := v.ptr
    		if v.flag&flagAddr != 0 {
    			c := unsafe_New(t)
    			typedmemmove(t, c, ptr)
    			ptr = c
    		}
    		e.Data = ptr
    	case v.flag&flagIndir != 0:
    		// Value is indirect, but interface is direct. We need
    		// to load the data at v.ptr into the interface data word.
    		e.Data = *(*unsafe.Pointer)(v.ptr)
    	default:
    		// Value is direct, and so is the interface.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  2. pkg/controller/job/indexed_job_utils_test.go

    				Spec: batch.JobSpec{
    					Completions:          ptr.To[int32](2),
    					BackoffLimitPerIndex: ptr.To[int32](0),
    				},
    			},
    			pods: []*v1.Pod{
    				buildPod().indexFailureCount("0").phase(v1.PodFailed).index("0").Pod,
    			},
    			wantFailedIndexes: nil,
    		},
    		"pod outside completions is ignored": {
    			job: batch.Job{
    				Spec: batch.JobSpec{
    					Completions:          ptr.To[int32](2),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/Wasm.rules

    (Load <t> ptr mem) && t.Size() == 2 &&  t.IsSigned() => (I64Load16S ptr mem)
    (Load <t> ptr mem) && t.Size() == 1 && !t.IsSigned() => (I64Load8U ptr mem)
    (Load <t> ptr mem) && t.Size() == 1 &&  t.IsSigned() => (I64Load8S ptr mem)
    
    // Lowering stores
    (Store {t} ptr val mem) && is64BitFloat(t) => (F64Store ptr val mem)
    (Store {t} ptr val mem) && is32BitFloat(t) => (F32Store ptr val mem)
    (Store {t} ptr val mem) && t.Size() == 8 => (I64Store ptr val mem)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 03:56:57 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  4. pkg/proxy/endpointslicecache_test.go

    		})
    	}
    }
    
    func TestEsDataChanged(t *testing.T) {
    	p80 := int32(80)
    	p443 := int32(443)
    	port80 := discovery.EndpointPort{Port: &p80, Name: ptr.To("http"), Protocol: ptr.To(v1.ProtocolTCP)}
    	port443 := discovery.EndpointPort{Port: &p443, Name: ptr.To("https"), Protocol: ptr.To(v1.ProtocolTCP)}
    	endpoint1 := discovery.Endpoint{Addresses: []string{"10.0.1.0"}}
    	endpoint2 := discovery.Endpoint{Addresses: []string{"10.0.1.1"}}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:07:21 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/apis/flowcontrol/bootstrap/default.go

    		flowcontrol.PriorityLevelConfigurationSpec{
    			Type: flowcontrol.PriorityLevelEnablementExempt,
    			Exempt: &flowcontrol.ExemptPriorityLevelConfiguration{
    				NominalConcurrencyShares: ptr.To(int32(0)),
    				LendablePercent:          ptr.To(int32(0)),
    			},
    		},
    	)
    	MandatoryPriorityLevelConfigurationCatchAll = newPriorityLevelConfiguration(
    		flowcontrol.PriorityLevelConfigurationNameCatchAll,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/memcombine.go

    func splitPtr(ptr *Value) (BaseAddress, int64) {
    	var idx *Value
    	var off int64
    	for {
    		if ptr.Op == OpOffPtr {
    			off += ptr.AuxInt
    			ptr = ptr.Args[0]
    		} else if ptr.Op == OpAddPtr {
    			if idx != nil {
    				// We have two or more indexing values.
    				// Pick the first one we found.
    				return BaseAddress{ptr: ptr, idx: idx}, off
    			}
    			idx = ptr.Args[1]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 19:45:41 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/walk.go

    	if t.IsInterface() {
    		base.Fatalf("ifaceData interface: %v", t)
    	}
    	ptr := ir.NewUnaryExpr(pos, ir.OIDATA, n)
    	if types.IsDirectIface(t) {
    		ptr.SetType(t)
    		ptr.SetTypecheck(1)
    		return ptr
    	}
    	ptr.SetType(types.NewPtr(t))
    	ptr.SetTypecheck(1)
    	ind := ir.NewStarExpr(pos, ptr)
    	ind.SetType(t)
    	ind.SetTypecheck(1)
    	ind.SetBounded(true)
    	return ind
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 20:56:00 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/writebarrier.go

    }
    
    // needWBdst reports whether GC needs to see what used to be in *ptr when ptr is
    // the target of a pointer store.
    func needWBdst(ptr, mem *Value, zeroes map[ID]ZeroRegion) bool {
    	// Detect storing to zeroed memory.
    	var off int64
    	for ptr.Op == OpOffPtr {
    		off += ptr.AuxInt
    		ptr = ptr.Args[0]
    	}
    	ptrSize := ptr.Block.Func.Config.PtrSize
    	if off%ptrSize != 0 {
    		return true // see issue 61187
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 23.5K bytes
    - Viewed (0)
  9. src/syscall/syscall_unix.go

    }
    
    func sendtoInet6(fd int, p []byte, flags int, to *SockaddrInet6) (err error) {
    	ptr, n, err := to.sockaddr()
    	if err != nil {
    		return err
    	}
    	return sendto(fd, p, flags, ptr, n)
    }
    
    func Sendto(fd int, p []byte, flags int, to Sockaddr) (err error) {
    	var (
    		ptr   unsafe.Pointer
    		salen _Socklen
    	)
    	if to != nil {
    		ptr, salen, err = to.sockaddr()
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 16:19:26 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. src/runtime/string.go

    	}
    	memmove(p, unsafe.Pointer(ptr), uintptr(n))
    	return unsafe.String((*byte)(p), n)
    }
    
    // stringDataOnStack reports whether the string's data is
    // stored on the current goroutine's stack.
    func stringDataOnStack(s string) bool {
    	ptr := uintptr(unsafe.Pointer(unsafe.StringData(s)))
    	stk := getg().stack
    	return stk.lo <= ptr && ptr < stk.hi
    }
    
    func rawstringtmp(buf *tmpBuf, l int) (s string, b []byte) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top