Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for copyVal (0.1 sec)

  1. src/reflect/value.go

    // TODO: undo when the inliner is no longer bottom-up only.
    //
    //go:noinline
    func (f flag) panicNotMap() {
    	f.mustBe(Map)
    }
    
    // copyVal returns a Value containing the map key or value at ptr,
    // allocating a new variable as needed.
    func copyVal(typ *abi.Type, fl flag, ptr unsafe.Pointer) Value {
    	if typ.IfaceIndir() {
    		// Copy result so future changes to the map
    		// won't change the underlying value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  2. test/noinit.go

    var copy_c0 = c0
    var copy_c1 = c1
    
    // var copy_dx = dx
    var copy_d0 = d0
    var copy_d1 = d1
    
    // var copy_sx = sx
    var copy_s0 = s0
    var copy_s1 = s1
    
    // var copy_ax = ax
    var copy_a0 = a0
    var copy_a1 = a1
    
    // var copy_tx = tx
    var copy_t0 = t0
    var copy_t0a = t0a
    var copy_t0b = t0b
    var copy_t1 = t1
    var copy_t1a = t1a
    
    // var copy_psx = psx
    var copy_ps0 = ps0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 14 17:57:36 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  3. test/typeparam/issue48453.go

    // license that can be found in the LICENSE file.
    
    package main
    
    //go:noinline
    func CopyMap[M interface{ ~map[K]V }, K comparable, V any](m M) M {
    	out := make(M, len(m))
    	for k, v := range m {
    		out[k] = v
    	}
    	return out
    }
    
    func main() {
    	var m map[*string]int
    	CopyMap(m)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 393 bytes
    - Viewed (0)
  4. src/internal/types/testdata/fixedbugs/issue40789.go

    package main
    
    import "fmt"
    
    func main() {
    	m := map[string]int{
    		"a": 6,
    		"b": 7,
    	}
    	fmt.Println(copyMap[map[string]int, string, int](m))
    }
    
    type Map[K comparable, V any] interface {
    	map[K] V
    }
    
    func copyMap[M Map[K, V], K comparable, V any](m M) M {
    	m1 := make(M)
    	for k, v := range m {
    		m1[k] = v
    	}
    	return m1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 614 bytes
    - Viewed (0)
  5. platforms/core-execution/execution-e2e-tests/src/integTest/groovy/org/gradle/integtests/StaleOutputHistoryLossIntegrationTest.groovy

            targetFile1.assertIsFile()
            targetFile2.assertIsFile()
    
            when:
            buildFile << """
                def reducedTaskDependencies = copyAll.taskDependencies.getDependencies(copyAll) - copy2
                copyAll.dependsOn = reducedTaskDependencies
            """
            succeeds taskPath
    
            then:
            executedAndNotSkipped(taskPath, ':copy1')
            notExecuted(':copy2')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 10:15:40 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  6. internal/handlers/forwarder.go

    		}
    	}
    	return u
    }
    
    // copyURL provides update safe copy by avoiding shallow copying User field
    func copyURL(i *url.URL) *url.URL {
    	out := *i
    	if i.User != nil {
    		u := *i.User
    		out.User = &u
    	}
    	return &out
    }
    
    // Modify the request to handle the target URL
    func (f *Forwarder) modifyRequest(outReq *http.Request, target *url.URL) {
    	outReq.URL = copyURL(outReq.URL)
    	outReq.URL.Scheme = target.Scheme
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 07 05:42:10 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  7. src/image/draw/draw_test.go

    	{"copyAlpha", vgradGreen(90), fillAlpha(192), Over, color.RGBA{100, 36, 0, 255}},
    	{"copyAlphaSrc", vgradGreen(90), fillAlpha(192), Src, color.RGBA{0, 36, 0, 68}},
    	{"copyNil", vgradGreen(90), nil, Over, color.RGBA{88, 48, 0, 255}},
    	{"copyNilSrc", vgradGreen(90), nil, Src, color.RGBA{0, 48, 0, 90}},
    	// Uniform mask (100%, 75%, nil) and variable NRGBA source.
    	// At (x, y) == (8, 8):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 26K bytes
    - Viewed (0)
Back to top