Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 68 for iface (0.04 sec)

  1. pkg/volume/iscsi/attacher.go

    	if err != nil {
    		klog.Warningf("failed to get iscsi mounter: %v", err)
    		return "", err
    	}
    	if mounter.InitiatorName != "" {
    		// new iface name is <target portal>:<volume name>
    		mounter.Iface = mounter.Portals[0] + ":" + mounter.VolName
    	}
    	return attacher.manager.MakeGlobalPDName(*mounter.iscsiDisk), nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 04 08:51:31 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  2. src/internal/fmtsort/sort_test.go

    	ct(reflect.TypeOf(toy{}), toy{0, 1}, toy{0, 2}, toy{1, -1}, toy{1, 1}),
    	ct(reflect.TypeOf([2]int{}), [2]int{1, 1}, [2]int{1, 2}, [2]int{2, 0}),
    	ct(reflect.TypeOf(any(0)), iFace, 1, 2, 3),
    }
    
    var iFace any
    
    func ct(typ reflect.Type, args ...any) []reflect.Value {
    	value := make([]reflect.Value, len(args))
    	for i, v := range args {
    		x := reflect.ValueOf(v)
    		if !x.IsValid() { // Make it a typed nil.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. test/maplinear.go

    			panic("wrong size map after nan insertion")
    		}
    	})
    
    	// ~6ms on a 1.6GHz Zeon.
    	checkLinear("eface", 10000, func(n int) {
    		m := map[interface{}]int{}
    		for i := 0; i < n; i++ {
    			m[i] = 1
    		}
    	})
    
    	// ~7ms on a 1.6GHz Zeon.
    	// Regression test for CL 119360043.
    	checkLinear("iface", 10000, func(n int) {
    		m := map[I]int{}
    		for i := 0; i < n; i++ {
    			m[C(i)] = 1
    		}
    	})
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/inline/inlheur/testdata/props/returns2.go

    // <endcallsites>
    // <endfuncpreamble>
    func T_chained_conc_iface_call(x, y int) {
    	// Similar to the case above, return from call returning concrete type
    	// feeds directly into interface call. Note that only the first
    	// iface call is interesting here.
    	newBar(10).Plark().Plark()
    }
    
    func returnsFunc(x int) func(int) int {
    	if x < 0 {
    		G++
    	}
    	return adder
    }
    
    func returnsFunc2() func(int) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:01 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  5. src/runtime/print.go

    }
    
    func printslice(s []byte) {
    	sp := (*slice)(unsafe.Pointer(&s))
    	print("[", len(s), "/", cap(s), "]")
    	printpointer(sp.array)
    }
    
    func printeface(e eface) {
    	print("(", e._type, ",", e.data, ")")
    }
    
    func printiface(i iface) {
    	print("(", i.tab, ",", i.data, ")")
    }
    
    // hexdumpWords prints a word-oriented hex dump of [p, end).
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 03:27:26 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/reflectdata/helpers.go

    	if hasRType(n, n.TypeWord, "TypeWord") {
    		return n.TypeWord
    	}
    	if dst.IsEmptyInterface() {
    		return concreteRType(pos, src) // direct eface construction
    	}
    	if !src.IsInterface() {
    		return ITabAddrAt(pos, src, dst) // direct iface construction
    	}
    	return TypePtrAt(pos, dst) // convI2I
    }
    
    // ConvIfaceSrcRType asserts that n is a conversion from
    // non-interface type to interface type, and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 04:50:32 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  7. src/runtime/iface_test.go

    	if runtime.Compiler != "gc" {
    		t.Skip("skipping on non-gc compiler")
    	}
    
    	n := testing.AllocsPerRun(1, func() {
    		_ = e == ts
    		_ = i1 == ts
    		_ = e == 1
    	})
    
    	if n > 0 {
    		t.Fatalf("iface cmp allocs=%v; want 0", n)
    	}
    }
    
    func BenchmarkEqEfaceConcrete(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		_ = e == ts
    	}
    }
    
    func BenchmarkEqIfaceConcrete(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 7.5K bytes
    - Viewed (0)
  8. test/typeparam/eface.go

    Matthew Dempsky <******@****.***> 1646087539 -0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  9. test/codegen/ifaces.go

    Keith Randall <******@****.***> 1695069109 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 17:02:53 UTC 2023
    - 621 bytes
    - Viewed (0)
  10. docs/assets/css/app.css

    @font-face {
        font-family: cash-market;
        src: url("https://cash-f.squarecdn.com/static/fonts/cash-market/v2/CashMarket-Regular.woff2") format("woff2");
        font-weight: 400;
        font-style: normal
    }
    
    @font-face {
        font-family: cash-market;
        src: url("https://cash-f.squarecdn.com/static/fonts/cash-market/v2/CashMarket-Medium.woff2") format("woff2");
        font-weight: 500;
        font-style: normal
    }
    
    @font-face {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Feb 08 07:57:03 UTC 2022
    - 1.1K bytes
    - Viewed (0)
Back to top