Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 82 for intPtr (0.29 sec)

  1. 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)
  2. pkg/kube/apimirror/probe.go

    // UnmarshalJSON implements the json.Unmarshaller interface.
    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)
    }
    
    // MarshalJSON implements the json.Marshaller interface.
    func (intstr IntOrString) MarshalJSON() ([]byte, error) {
    	switch intstr.Type {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/labels_test.go

    			Exec: &v1.ExecAction{
    				Command: []string{"action1", "action2"},
    			},
    			HTTPGet: &v1.HTTPGetAction{
    				Path:   "path",
    				Host:   "host",
    				Port:   intstr.FromInt32(8080),
    				Scheme: "scheme",
    			},
    			TCPSocket: &v1.TCPSocketAction{
    				Port: intstr.FromString("80"),
    			},
    		},
    	}
    	container := &v1.Container{
    		Name:                   "test_container",
    		TerminationMessagePath: "/somepath",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 22:43:36 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. src/internal/runtime/atomic/atomic_arm.go

    	return &locktab[(uintptr(unsafe.Pointer(addr))>>3)%uintptr(len(locktab))].l
    }
    
    // Atomic add and return new value.
    //
    //go:nosplit
    func Xadd(val *uint32, delta int32) uint32 {
    	for {
    		oval := *val
    		nval := oval + uint32(delta)
    		if Cas(val, oval, nval) {
    			return nval
    		}
    	}
    }
    
    //go:noescape
    func Xadduintptr(ptr *uintptr, delta uintptr) uintptr
    
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. src/runtime/sys_openbsd3.go

    //go:nosplit
    //go:cgo_unsafe_args
    func syscall_syscall(fn, a1, a2, a3 uintptr) (r1, r2, err uintptr) {
    	entersyscall()
    	libcCall(unsafe.Pointer(abi.FuncPCABI0(syscall)), unsafe.Pointer(&fn))
    	exitsyscall()
    	return
    }
    func syscall()
    
    //go:linkname syscall_syscallX syscall.syscallX
    //go:nosplit
    //go:cgo_unsafe_args
    func syscall_syscallX(fn, a1, a2, a3 uintptr) (r1, r2, err uintptr) {
    	entersyscall()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. src/internal/syscall/unix/pidfd_linux.go

    package unix
    
    import "syscall"
    
    func PidFDSendSignal(pidfd uintptr, s syscall.Signal) error {
    	_, _, errno := syscall.Syscall(pidfdSendSignalTrap, pidfd, uintptr(s), 0)
    	if errno != 0 {
    		return errno
    	}
    	return nil
    }
    
    func PidFDOpen(pid, flags int) (uintptr, error) {
    	pidfd, _, errno := syscall.Syscall(pidfdOpenTrap, uintptr(pid), uintptr(flags), 0)
    	if errno != 0 {
    		return ^uintptr(0), errno
    	}
    	return uintptr(pidfd), nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 01:23:00 UTC 2024
    - 591 bytes
    - Viewed (0)
  7. src/internal/runtime/atomic/atomic_mipsx.go

    		}
    	}
    }
    
    //go:noescape
    func Xadd(ptr *uint32, delta int32) uint32
    
    //go:noescape
    func Xadduintptr(ptr *uintptr, delta uintptr) uintptr
    
    //go:noescape
    func Xchg(ptr *uint32, new uint32) uint32
    
    //go:noescape
    func Xchguintptr(ptr *uintptr, new uintptr) uintptr
    
    //go:noescape
    func Load(ptr *uint32) uint32
    
    //go:noescape
    func Load8(ptr *uint8) uint8
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 20:08:37 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. src/internal/runtime/atomic/atomic_mips64x.go

    //go:noescape
    func Xadd64(ptr *uint64, delta int64) uint64
    
    //go:noescape
    func Xadduintptr(ptr *uintptr, delta uintptr) uintptr
    
    //go:noescape
    func Xchg(ptr *uint32, new uint32) uint32
    
    //go:noescape
    func Xchg64(ptr *uint64, new uint64) uint64
    
    //go:noescape
    func Xchguintptr(ptr *uintptr, new uintptr) uintptr
    
    //go:noescape
    func Load(ptr *uint32) uint32
    
    //go:noescape
    func Load8(ptr *uint8) uint8
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 21:29:34 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. src/internal/runtime/atomic/atomic_386.go

    //go:noescape
    func And64(ptr *uint64, val uint64) uint64
    
    //go:noescape
    func Or64(ptr *uint64, val uint64) uint64
    
    //go:noescape
    func Anduintptr(ptr *uintptr, val uintptr) uintptr
    
    //go:noescape
    func Oruintptr(ptr *uintptr, val uintptr) uintptr
    
    // NOTE: Do not add atomicxor8 (XOR is not idempotent).
    
    //go:noescape
    func Cas64(ptr *uint64, old, new uint64) bool
    
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. src/runtime/checkptr.go

    	}
    
    	// heap (must check after stack because of #35068)
    	if base, _, _ := findObject(uintptr(p), 0, 0); base != 0 {
    		return base
    	}
    
    	// data or bss
    	for _, datap := range activeModules() {
    		if datap.data <= uintptr(p) && uintptr(p) < datap.edata {
    			return datap.data
    		}
    		if datap.bss <= uintptr(p) && uintptr(p) < datap.ebss {
    			return datap.bss
    		}
    	}
    
    	return 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top