Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 431 for intp (0.04 sec)

  1. test/nilptr3.go

    // Optimization is enabled.
    
    package p
    
    type Struct struct {
    	X int
    	Y float64
    }
    
    type BigStruct struct {
    	X int
    	Y float64
    	A [1 << 20]int
    	Z string
    }
    
    type Empty struct {
    }
    
    type Empty1 struct {
    	Empty
    }
    
    var (
    	intp       *int
    	arrayp     *[10]int
    	array0p    *[0]int
    	bigarrayp  *[1 << 26]int
    	structp    *Struct
    	bigstructp *BigStruct
    	emptyp     *Empty
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/library/ip_test.go

    	} else {
    		t.Fatal("expected result must not be nil")
    	}
    }
    
    func TestIP(t *testing.T) {
    	ipv4Addr, _ := netip.ParseAddr("192.168.0.1")
    	int4 := types.Int(4)
    
    	ipv6Addr, _ := netip.ParseAddr("2001:db8::68")
    	int6 := types.Int(6)
    
    	trueVal := types.Bool(true)
    	falseVal := types.Bool(false)
    
    	cases := []struct {
    		name              string
    		expr              string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 12:03:07 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  3. pkg/proxy/apis/config/fuzzer/fuzzer.go

    			obj.HealthzBindAddress = fmt.Sprintf("%d.%d.%d.%d:%d", c.Intn(256), c.Intn(256), c.Intn(256), c.Intn(256), c.Intn(65536))
    			obj.IPTables.MasqueradeBit = ptr.To(c.Int31())
    			obj.IPTables.LocalhostNodePorts = ptr.To(c.RandBool())
    			obj.NFTables.MasqueradeBit = ptr.To(c.Int31())
    			obj.MetricsBindAddress = fmt.Sprintf("%d.%d.%d.%d:%d", c.Intn(256), c.Intn(256), c.Intn(256), c.Intn(256), c.Intn(65536))
    			obj.OOMScoreAdj = ptr.To(c.Int31())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:33:53 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go

    type RawSockaddrUnix struct {
    	Family uint16
    	Path   [108]int8
    }
    
    type RawSockaddrDatalink struct {
    	Family uint16
    	Index  uint16
    	Type   uint8
    	Nlen   uint8
    	Alen   uint8
    	Slen   uint8
    	Data   [244]int8
    }
    
    type RawSockaddr struct {
    	Family uint16
    	Data   [14]int8
    }
    
    type RawSockaddrAny struct {
    	Addr RawSockaddr
    	Pad  [236]int8
    }
    
    type _Socklen uint32
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  5. src/syscall/ztypes_openbsd_riscv64.go

    	F_asyncwrites uint64
    	F_asyncreads  uint64
    	F_fsid        Fsid
    	F_namemax     uint32
    	F_owner       uint32
    	F_ctime       uint64
    	F_fstypename  [16]int8
    	F_mntonname   [90]int8
    	F_mntfromname [90]int8
    	F_mntfromspec [90]int8
    	Pad_cgo_0     [2]byte
    	Mount_info    [160]byte
    }
    
    type Flock_t struct {
    	Start  int64
    	Len    int64
    	Pid    int32
    	Type   int16
    	Whence int16
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 02:55:38 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  6. src/math/rand/v2/example_test.go

    	// The Int method (not shown) is like either Int32 or Int64
    	// depending on the size of 'int'.
    	show("Int32", r.Int32(), r.Int32(), r.Int32())
    	show("Int64", r.Int64(), r.Int64(), r.Int64())
    	show("Uint32", r.Uint32(), r.Uint32(), r.Uint32())
    
    	// IntN, Int32N, and Int64N limit their output to be < n.
    	// They do so more carefully than using r.Int()%n.
    	show("IntN(10)", r.IntN(10), r.IntN(10), r.IntN(10))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 30 17:09:26 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  7. src/internal/types/testdata/check/const1.go

    	maxFloat64 = math.MaxFloat64
    )
    
    const (
    	_ int8 = minInt8 /* ERROR "overflows" */ - 1
    	_ int8 = minInt8
    	_ int8 = maxInt8
    	_ int8 = maxInt8 /* ERROR "overflows" */ + 1
    	_ int8 = smallestFloat64 /* ERROR "truncated" */
    
    	_ = int8(minInt8 /* ERROR "overflows" */ - 1)
    	_ = int8(minInt8)
    	_ = int8(maxInt8)
    	_ = int8(maxInt8 /* ERROR "overflows" */ + 1)
    	_ = int8(smallestFloat64 /* ERROR "cannot convert" */)
    )
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 16:11:16 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  8. src/syscall/ztypes_openbsd_ppc64.go

    	F_asyncwrites uint64
    	F_asyncreads  uint64
    	F_fsid        Fsid
    	F_namemax     uint32
    	F_owner       uint32
    	F_ctime       uint64
    	F_fstypename  [16]int8
    	F_mntonname   [90]int8
    	F_mntfromname [90]int8
    	F_mntfromspec [90]int8
    	Pad_cgo_0     [2]byte
    	Mount_info    [160]byte
    }
    
    type Flock_t struct {
    	Start  int64
    	Len    int64
    	Pid    int32
    	Type   int16
    	Whence int16
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 03:24:15 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  9. src/runtime/defs_darwin_amd64.go

    type pthreadattr struct {
    	X__sig    int64
    	X__opaque [56]int8
    }
    type pthreadmutex struct {
    	X__sig    int64
    	X__opaque [56]int8
    }
    type pthreadmutexattr struct {
    	X__sig    int64
    	X__opaque [8]int8
    }
    type pthreadcond struct {
    	X__sig    int64
    	X__opaque [40]int8
    }
    type pthreadcondattr struct {
    	X__sig    int64
    	X__opaque [8]int8
    }
    
    type machTimebaseInfo struct {
    	numer uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. src/internal/types/testdata/fixedbugs/issue63563.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    var (
    	_ = int8(1 /* ERROR "constant 255 overflows int8" */ <<8 - 1)
    	_ = int16(1 /* ERROR "constant 65535 overflows int16" */ <<16 - 1)
    	_ = int32(1 /* ERROR "constant 4294967295 overflows int32" */ <<32 - 1)
    	_ = int64(1 /* ERROR "constant 18446744073709551615 overflows int64" */ <<64 - 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 16:11:16 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top